Method: Faat::FaatObject#method_missing
- Defined in:
- lib/faat/faat_object/faat_object.rb
#method_missing(name, *attr, &block) ⇒ Object
initialize :method_missing for ActiveRecord methods like :save, :valid?, :destroy and others
21 22 23 24 |
# File 'lib/faat/faat_object/faat_object.rb', line 21 def method_missing(name, *attr, &block) # getting resource by instance variable :resource_name resource.send(name, *attr, &block) || super end |