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

Instance Method Details

#createObject



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

#destroyObject



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

#editObject



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

#indexObject



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

#newObject



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

#showObject



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

#updateObject



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