We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35873a commit 4f590b6Copy full SHA for 4f590b6
activemodel/lib/active_model/attribute_methods.rb
@@ -235,10 +235,6 @@ def attribute_method_matchers #:nodoc:
235
# It's also possible to instantiate related objects, so a Client class belonging to the clients
236
# table with a +master_id+ foreign key can instantiate master through Client#master.
237
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
-
242
method_name = method_id.to_s
243
if match = match_attribute_method?(method_name)
244
guard_private_attribute_method!(method_name, args)
0 commit comments