diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-01-01 11:02:09 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-01-01 11:02:09 -0800 |
commit | 4f590b67b7a184978dfaf3b1bd0a472f43c32cad (patch) | |
tree | af710e07cdf755bd0640d78585c2e0628728affa /activemodel/lib | |
parent | b35873a575586d31e9de681aec31d4b884b25aba (diff) | |
download | rails-4f590b67b7a184978dfaf3b1bd0a472f43c32cad.tar.gz rails-4f590b67b7a184978dfaf3b1bd0a472f43c32cad.tar.bz2 rails-4f590b67b7a184978dfaf3b1bd0a472f43c32cad.zip |
Ruby 1.9.2: explicit coercion check no longer needed; bug fixed upstream
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/attribute_methods.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index 8f855958c6..977a101277 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -235,10 +235,6 @@ module ActiveModel # It's also possible to instantiate related objects, so a Client class belonging to the clients # table with a +master_id+ foreign key can instantiate master through Client#master. def method_missing(method_id, *args, &block) - if method_id == :to_ary || method_id == :to_str - raise NoMethodError, "undefined method `#{method_id}' for #{inspect}:#{self.class}" - end - method_name = method_id.to_s if match = match_attribute_method?(method_name) guard_private_attribute_method!(method_name, args) |