- 25 5月, 2014 1 次提交
-
-
由 Guo Xiang Tan 提交于
Minitest has already been required when calling Minitest.autorun.
-
- 24 5月, 2014 3 次提交
-
-
由 Akshay Vishnoi 提交于
-
由 Akshay Vishnoi 提交于
-
由 Kuldeep Aggarwal 提交于
`Array#to` is working for negative position
-
- 23 5月, 2014 1 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
- 20 5月, 2014 1 次提交
-
-
由 Vladimir Yarotsky 提交于
-
- 18 5月, 2014 1 次提交
-
-
由 printercu 提交于
Just moved class methods up in file and moved `def self.` methods into `class << self`.
-
- 14 5月, 2014 1 次提交
-
-
由 eileencodes 提交于
This deprecation was released in 4.1.0 and can be removed for 4.2.0, deprecation message / handling is no longer necessary.
-
- 13 5月, 2014 3 次提交
-
-
由 printercu 提交于
-
由 eileencodes 提交于
Use if/else instead of unless/else so conditional reads better.
-
由 Mark J. Titorenko 提交于
Use block parameter rather than `$1` during `gsub!` so `ActiveSupport::SafeBuffer` values aren't mangled. Fixes #15064
-
- 11 5月, 2014 3 次提交
-
-
由 Andrew White 提交于
-
由 Ulysse Carion 提交于
Namely, if the mday is omitted but any other upper components are, then instead of supplying the mday from the current time, it defaults to 1.
-
由 Santosh Wadghule 提交于
-
- 10 5月, 2014 1 次提交
-
-
由 schneems 提交于
Current docs are wrong. Does not accept strftime inputs.
-
- 09 5月, 2014 2 次提交
-
-
由 Dennis Schoen 提交于
ActiveSupport::Subscriber no longer creates multiple subscribers when you redefine a method.
-
由 Santosh Wadghule 提交于
-
- 07 5月, 2014 1 次提交
-
-
由 Xavier Noria 提交于
* Strips leading underscores. * Changes some unnecessary gsub!s to sub!s. * Replaces some anchors ^, $ with \A, \z. * Documents that human inflection rules are applied. * Documents that words are downcased except acronyms. * Adds an example with an acronym. * Rewords docs.
-
- 05 5月, 2014 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Kuldeep Aggarwal 提交于
-
- 03 5月, 2014 1 次提交
-
-
由 Bogdan Gusiev 提交于
Empty Hash or Array should not present in serialization result {a: []}.to_query # => "" {a: {}}.to_query # => "" For more info see #14948.
-
- 23 4月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 21 4月, 2014 2 次提交
-
-
由 Arun Agrawal 提交于
After this 21dbe6f3 2.1.1 :001 > 'business'.classify => "Business" 2.1.1 :004 > 'calculus'.classify => "Calculu" 2.1.1 :005 >
-
由 Kuldeep Aggarwal 提交于
-
- 20 4月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 19 4月, 2014 2 次提交
-
-
由 Kuldeep Aggarwal 提交于
Before: When calling String#pluralize with count=1 then it returned same string, but with count other than 1, returned new string. After: String#pluralize always return a new string. => Prevent mutation of a string inadvertently.
-
由 Ernie Miller 提交于
While calling String#first or String#last with zero or a Fixnum < the string's length returns a new string, a Fixnum >= the string's length returns the string itself. This inconsistency can lead to inadvertent mutation of a string.
-
- 16 4月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
1. Improve tests 2. Remove unnecessary constant 3. Add docs for BigDecimal#duplicable?
-
- 12 4月, 2014 2 次提交
-
-
由 Steven Harman 提交于
[ci skip]
-
由 Steven Harman 提交于
[ci skip]
-
- 11 4月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 10 4月, 2014 1 次提交
-
-
由 Lucas Mazza 提交于
-
- 09 4月, 2014 2 次提交
-
-
由 Emily Dobervich 提交于
This fixes: 1.second.eql?(1.second) #=> false The new `eql?` requires that `other` is an `ActiveSupport::Duration`. This requirement makes `ActiveSupport::Duration`'s behavior consistent with other numeric types in Ruby. 1.eql?(1.0) #=> false 1.0.eql?(1) #=> false 1.second.eql?(1) #=> false (was true) 1.eql?(1.second) #=> false { 1 => "foo", 1.0 => "bar" } #=> { 1 => "foo", 1.0 => "bar" } { 1 => "foo", 1.second => "bar" } # now => { 1 => "foo", 1.second => "bar" } # was => { 1 => "bar" } And though the behavior here hasn't changed, for reference: 1 == 1.0 #=> true 1.0 == 1 #=> true 1 == 1.second #=> true 1.second == 1 #=> true
-
由 David Rodríguez de Dios 提交于
-
- 07 4月, 2014 1 次提交
-
-
由 Steven Harman 提交于
-
- 03 4月, 2014 2 次提交
-
-
由 Lauro Caetano 提交于
It was causing error when using `with_options` passing a lambda as its last argument. class User < ActiveRecord::Base with_options dependent: :destroy do |assoc| assoc.has_many :profiles, -> { where(active: true) } end end It was happening because the `option_merger` was taking the last argument and checking if it was a Hash. This breaks the HasMany usage, because its last argument can be a Hash or a Proc. As the behavior described in this test: https://github.com/rails/rails/blob/master/activesupport/test/option_merger_test.rb#L69 the method will only accept the lambda, this way it will keep the expected behavior. See 9eaa0a34
-
由 Carlos Antonio da Silva 提交于
Change to require all active_support/deprecation since that's the actual entry point for the deprecation methods.
-
- 02 4月, 2014 1 次提交
-
-
由 Pavel Pravosud 提交于
-
- 01 4月, 2014 1 次提交
-
-
由 Pavel Pravosud 提交于
Make `#prepend` method modify instance in-place and return self instead of just returning modified value. That is exactly what `#prepend!` method was doing previously, so it's deprecated from now on.
-
- 28 3月, 2014 1 次提交
-
-
由 Peter Jaros 提交于
In particular, `.new`, `#update`, `#merge`, `#replace` all accept objects which respond to `#to_hash`, even if those objects are not Hashes directly.
-