Class: E9Crm::ResourcesController

Inherits:
BaseController show all
Includes:
E9Rails::Helpers::ResourceErrorMessages
Defined in:
app/controllers/e9_crm/resources_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.defaults(hash = {}) ⇒ Object



20
21
22
# File 'app/controllers/e9_crm/resources_controller.rb', line 20

def self.defaults(hash = {})
  super(hash.reverse_merge(:route_prefix => nil))
end

Instance Method Details

#createObject



24
25
26
# File 'app/controllers/e9_crm/resources_controller.rb', line 24

def create
  create! { collection_path }
end

#updateObject



28
29
30
# File 'app/controllers/e9_crm/resources_controller.rb', line 28

def update
  update! { collection_path }
end