Module: ActiveElement::DefaultControllerActions
- Extended by:
- ActiveSupport::Concern
- Included in:
- ApplicationController
- Defined in:
- app/controllers/concerns/active_element/default_controller_actions.rb
Overview
Default Rails actions to be performed if not defined by a controller, allows developers to define a controller and have basic boilerplate for typical functionality which can be overridden and customized as needed.
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
22 23 24 |
# File 'app/controllers/concerns/active_element/default_controller_actions.rb', line 22 def create ActiveElement::DefaultController::Controller.new(controller: self).create end |
#destroy ⇒ Object
34 35 36 |
# File 'app/controllers/concerns/active_element/default_controller_actions.rb', line 34 def destroy ActiveElement::DefaultController::Controller.new(controller: self).destroy end |
#edit ⇒ Object
26 27 28 |
# File 'app/controllers/concerns/active_element/default_controller_actions.rb', line 26 def edit ActiveElement::DefaultController::Controller.new(controller: self).edit end |
#index ⇒ Object
10 11 12 |
# File 'app/controllers/concerns/active_element/default_controller_actions.rb', line 10 def index ActiveElement::DefaultController::Controller.new(controller: self).index end |
#new ⇒ Object
18 19 20 |
# File 'app/controllers/concerns/active_element/default_controller_actions.rb', line 18 def new ActiveElement::DefaultController::Controller.new(controller: self).new end |
#show ⇒ Object
14 15 16 |
# File 'app/controllers/concerns/active_element/default_controller_actions.rb', line 14 def show ActiveElement::DefaultController::Controller.new(controller: self).show end |
#update ⇒ Object
30 31 32 |
# File 'app/controllers/concerns/active_element/default_controller_actions.rb', line 30 def update ActiveElement::DefaultController::Controller.new(controller: self).update end |