Module: Puffer::Controller::Mutate::ClassMethods
- Defined in:
- lib/puffer/controller/mutate.rb
Instance Method Summary collapse
Instance Method Details
#model ⇒ Object
53 54 55 |
# File 'lib/puffer/controller/mutate.rb', line 53 def model @model ||= model_name.camelize.constantize rescue nil end |
#model_name ⇒ Object
49 50 51 |
# File 'lib/puffer/controller/mutate.rb', line 49 def model_name @model_name ||= (configuration.model_name || controller_name.singularize).to_s end |
#puffer? ⇒ Boolean
45 46 47 |
# File 'lib/puffer/controller/mutate.rb', line 45 def puffer? true end |