method
method_missing
v3.0.0 -
Show latest stable
-
0 notes -
Class: ActiveRecord::AttributeMethods
- 1.0.0
- 1.1.0
- 1.1.1
- 1.1.6
- 1.2.0
- 1.2.6
- 2.0.0
- 2.0.1
- 2.0.3
- 2.1.0 (0)
- 2.2.1 (0)
- 2.3.2 (0)
- 2.3.8 (0)
- 3.0.0 (-38)
- 3.0.5 (0)
- 3.0.7 (0)
- 3.0.9 (0)
- 3.1.0 (0)
- 3.2.1 (7)
- 3.2.3 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- What's this?
method_missing(method_id, *args, &block)
public
Hide source
# File activerecord/lib/active_record/attribute_methods.rb, line 37 def method_missing(method_id, *args, &block) # If we haven't generated any methods yet, generate them, then # see if we've created the method we're looking for. if !self.class.attribute_methods_generated? self.class.define_attribute_methods method_name = method_id.to_s guard_private_attribute_method!(method_name, args) send(method_id, *args, &block) else super end end


