- 13 9月, 2013 1 次提交
-
-
由 Godfrey Chan 提交于
TL;DR The primary driver is to remove autoload surprise. This is related to #12106. (The root cause for that ticket is that json/add defines Regexp#to_json among others, but here I'll reproduce the problem without json/add.) Before: >> require 'active_support/core_ext/to_json' => true >> //.as_json NoMethodError: undefined method `as_json' for //:Regexp from (irb):3 from /Users/godfrey/.rvm/rubies/ruby-2.0.0-p195/bin/irb:16:in `<main>' >> //.to_json => "\"(?-mix:)\"" >> //.as_json => "(?-mix:)" After: >> require 'active_support/core_ext/to_json' => true >> //.as_json => "(?-mix:)" This is because ActiveSupport::JSON is autoloaded the first time Object#to_json is called, which causes additional core extentions (previously defined in active_support/json/encoding.rb) to be loaded. When someone require 'active_support/core_ext', the expectation is that it would add certain methods to the core classes NOW. The previous behaviour causes additional methods to be loaded the first time you call `to_json`, which could cause nasty surprises and other unplesant side-effects. This change moves all core extensions in to core_ext/json. AS::JSON is still autoloaded on first #to_json call, but since it nolonger include the core extensions, it should address the aforementioned bug. *Requiring core_ext/object/to_json now causes a deprecation warnning*
-
- 07 9月, 2013 1 次提交
-
-
由 Paul Nikitochkin 提交于
* Indent after private/protected * Ruby >= 1.9 syntax for hashes * Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks. [ci skip]
-
- 03 9月, 2013 1 次提交
-
-
由 Vipul A M 提交于
-
- 18 8月, 2013 1 次提交
-
- 15 8月, 2013 2 次提交
-
-
由 Rashmi Yadav 提交于
-
由 Rashmi Yadav 提交于
-
- 28 7月, 2013 2 次提交
-
-
由 Mikhail Dieterle 提交于
-
由 Mikhail Dieterle 提交于
-
- 24 7月, 2013 4 次提交
-
-
由 Rashmi Yadav 提交于
-
由 Rashmi Yadav 提交于
-
由 Rashmi Yadav 提交于
-
由 Rashmi Yadav 提交于
for blank?
-
- 14 6月, 2013 1 次提交
-
-
由 Vijay Dev 提交于
-
- 09 6月, 2013 1 次提交
-
-
由 Jeff Cohen 提交于
-
- 28 5月, 2013 1 次提交
-
-
由 Sunny Ripert 提交于
-
- 12 5月, 2013 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
-
- 01 5月, 2013 2 次提交
-
-
由 Brian Morearty 提交于
-
由 Yves Senn 提交于
* it's Action Mailer not ActionMailer * it's Action Pack not ActionPack * it's Active Support not ActiveSupport /cc @fxn
-
- 30 4月, 2013 1 次提交
-
-
由 Yves Senn 提交于
/cc @fxn
-
- 14 4月, 2013 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
-
- 07 4月, 2013 1 次提交
-
-
由 Agis- 提交于
-
- 25 3月, 2013 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
-
- 14 3月, 2013 1 次提交
-
-
由 Vipul A M 提交于
-
- 23 2月, 2013 1 次提交
-
-
由 Gagan Awhad 提交于
Added documentation for beginning_of_minute and end_of_minute to Active Support Core Extensions guide
-
- 23 1月, 2013 1 次提交
-
-
由 Antoine Lyset 提交于
-
- 06 1月, 2013 1 次提交
-
-
由 Gosha Arinich 提交于
-
- 04 1月, 2013 3 次提交
-
-
由 Ryunosuke SATO 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
instance_variable_names remains for internal use, but it's not that useful for the users anymore
-
- 12 12月, 2012 1 次提交
-
-
由 Pablo Torres 提交于
Don't use: * Time.time_with_datetime_fallback * Time.utc_time * Time.local_time
-
- 11 12月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 08 12月, 2012 2 次提交
-
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
There's no reason for guides to reference old behaviors. They should be current as of the versions of Rails that they ship with, and including older information just clutters thing. I discussed this change with @fxn and he agrees.
-
- 01 12月, 2012 4 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Xavier Noria 提交于
-
由 Uriel Katz 提交于
Patched Marshal#load to work with constant autoloading (active_support/dependecies.rb) (issue #8167)
-
由 claudiob 提交于
ActiveRecord::Observer was extracted into a separate gem so it should not be referenced anymore (see https://github.com/rails/rails/commit/ccecab3)
-
- 30 11月, 2012 1 次提交
-
-
由 Steve Klabnik 提交于
We have three or four different introduction sentences to the guides. After this commit, we use the same one everywhere.
-
- 17 11月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
-
- 16 11月, 2012 1 次提交
-
-
由 Agis Anastasopoulos 提交于
-