aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/object/duplicable.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix Symbol#duplicable? for Ruby 2.4.0.Kasper Timm Hansen2017-01-011-1/+2
| | | | | | | | | | | | | Ruby 2.4.0 has trouble duplicating certain symbols created from strings via `to_sym`. It didn't happen with `'symbol'.to_sym.dup` for some reason, but works fine with the longer string sample. Once a newer Ruby version with a fix is released we'll get have a failing test case we can fix. Ref: #27532
* Fix Complex and Rational are duplicable?utilum2016-12-211-0/+20
| | | | See [this test](https://gist.github.com/utilum/78918f1b64f8b61ee732cb266db7c43a).
* change return value of `duplicable?` with Ruby 2.4+yuuji.yaginuma2016-12-131-33/+58
| | | | | | | `NilClass`, `FalseClass`, `TrueClass`, `Symbol` and `Numeric` can dup with Ruby 2.4+. Ref: https://bugs.ruby-lang.org/issues/12979
* applies new string literal convention in activesupport/libXavier Noria2016-08-061-1/+1
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Support for unified Integer class in Ruby 2.4+Jeremy Daer2016-05-181-1/+1
| | | | | | | | Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005 * Forward compat with new unified Integer class in Ruby 2.4+. * Backward compat with separate Fixnum/Bignum in Ruby 2.2 & 2.3. * Drops needless Fixnum distinction in docs, preferring Integer.
* Tiny documentation edits [ci skip]Robin Dupret2015-07-281-1/+1
|
* improve duplicable documentation [ci skip]Julio Lopez2015-07-101-1/+5
|
* Remove some comments about Ruby 1.9 behaviorsRafael Mendonça França2015-01-041-1/+1
|
* Remove hack to support BigDecimal in Ruby 1.9claudiob2015-01-041-11/+2
| | | | | Now that Rails requires Ruby >= 2.0, there is no need to check whether `BigDecimal` exists or not.
* Methods are not duplicable.Peter Jaros2014-09-031-0/+10
|
* [ci skip] BigDecimal#duplicable? returns false in 1.9.xAkshay Vishnoi2014-06-131-1/+1
|
* Object#duplicable?Akshay Vishnoi2014-04-161-0/+3
| | | | | | 1. Improve tests 2. Remove unnecessary constant 3. Add docs for BigDecimal#duplicable?
* update some AS code examples to 1.9 hash syntax [ci skip]Francesco Rodriguez2012-09-121-5/+0
|
* Fix documentation around duplicable regarding Class and Module.Mark McSpadden2012-05-171-1/+1
|
* Remove special cases for duplicable? on Class and ModuleMark McSpadden2012-05-171-24/+0
|
* probably should require the objects we monkey patch.Aaron Patterson2012-03-201-0/+1
|
* bigdecimal can be duped on Ruby 2.0Aaron Patterson2012-03-201-0/+12
|
* Prevent duplicable comments from being the opening paragraph for Object docsEvan Farrar2011-05-181-0/+2
|
* remove unwanted Example headers as per the guidelines, s/instaces of ↵Xavier Noria2011-04-191-21/+36
| | | | NilClass/nil/ and friends, completes some rdocs
* Docs for +duplicable?+Sebastian Martinez2011-04-171-4/+28
|
* explains the motivation for duplicable?Xavier Noria2009-11-191-0/+16
|
* Unify class_inheritable_accessor and extlib_inheritable_accessor and allow ↵José Valim2009-10-171-1/+7
| | | | responder to be set in the class level.
* Merge docrailsPratik Naik2009-07-251-1/+1
|
* blank? and duplicable? are Object extensionsJeremy Kemper2009-03-211-0/+43