Class: RestaurantCpt::Forms::SettingByOwner

Inherits:
Reform::Form
  • Object
show all
Defined in:
app/concepts/restaurant_cpt/forms/setting_by_owner.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



31
32
33
34
35
36
37
# File 'app/concepts/restaurant_cpt/forms/setting_by_owner.rb', line 31

def method_missing(method, *args)
  if model.respond_to? method
    model.send method
  else
    super(method, *args)
  end
end