Skip to content

Commit 4f590b6

Browse files
committed
Ruby 1.9.2: explicit coercion check no longer needed; bug fixed upstream
1 parent b35873a commit 4f590b6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

activemodel/lib/active_model/attribute_methods.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,6 @@ def attribute_method_matchers #:nodoc:
235235
# It's also possible to instantiate related objects, so a Client class belonging to the clients
236236
# table with a +master_id+ foreign key can instantiate master through Client#master.
237237
def method_missing(method_id, *args, &block)
238-
if method_id == :to_ary || method_id == :to_str
239-
raise NoMethodError, "undefined method `#{method_id}' for #{inspect}:#{self.class}"
240-
end
241-
242238
method_name = method_id.to_s
243239
if match = match_attribute_method?(method_name)
244240
guard_private_attribute_method!(method_name, args)

0 commit comments

Comments
 (0)