Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ruby 1.9.2: explicit coercion check no longer needed; bug fixed upstream

  • Loading branch information...
commit 4f590b67b7a184978dfaf3b1bd0a472f43c32cad 1 parent b35873a
@jeremy jeremy authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 activemodel/lib/active_model/attribute_methods.rb
View
4 activemodel/lib/active_model/attribute_methods.rb
@@ -235,10 +235,6 @@ def attribute_method_matchers #:nodoc:
# 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)
Please sign in to comment.
Something went wrong with that request. Please try again.