diff options
author | José Valim <jose.valim@gmail.com> | 2009-10-17 12:54:03 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-10-17 12:54:03 -0300 |
commit | 2e37effd7203cad84459661e11db2be44586cb4f (patch) | |
tree | d6dd2b515de069b1cd7136ef26aa8d8fc77a3f6b /activesupport/lib/active_support/core_ext/object | |
parent | e13d232150921cdf0ec3d713caefa628d235152e (diff) | |
download | rails-2e37effd7203cad84459661e11db2be44586cb4f.tar.gz rails-2e37effd7203cad84459661e11db2be44586cb4f.tar.bz2 rails-2e37effd7203cad84459661e11db2be44586cb4f.zip |
Unify class_inheritable_accessor and extlib_inheritable_accessor and allow responder to be set in the class level.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/object')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/duplicable.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb index 1722726ca2..a2d4d50076 100644 --- a/activesupport/lib/active_support/core_ext/object/duplicable.rb +++ b/activesupport/lib/active_support/core_ext/object/duplicable.rb @@ -1,6 +1,6 @@ class Object # Can you safely .dup this object? - # False for nil, false, true, symbols, numbers, and class objects; true otherwise. + # False for nil, false, true, symbols, numbers, class and module objects; true otherwise. def duplicable? true end @@ -41,3 +41,9 @@ class Class #:nodoc: false end end + +class Module #:nodoc: + def duplicable? + false + end +end |