Class: KingsmanController

Inherits:
Object
  • Object
show all
Includes:
Kingsman::Controllers::ScopedViews
Defined in:
app/controllers/kingsman_controller.rb

Instance Method Summary collapse

Instance Method Details

#build_resource(hash = {}) ⇒ Object

Generic methods below



8
9
10
# File 'app/controllers/kingsman_controller.rb', line 8

def build_resource(hash = {})
  self.resource = resource_class.new(hash)
end