Class: E9Crm::ResourcesController

Inherits:
BaseController show all
Includes:
E9::Controllers::InheritableViews, E9::DestroyRestricted::Controller, 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



22
23
24
# File 'app/controllers/e9_crm/resources_controller.rb', line 22

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

Instance Method Details

#createObject



26
27
28
# File 'app/controllers/e9_crm/resources_controller.rb', line 26

def create
  create! { collection_path }
end

#updateObject



30
31
32
# File 'app/controllers/e9_crm/resources_controller.rb', line 30

def update
  update! { collection_path }
end