module Strongbolt::BoltedController::ClassMethods
Public Instance Methods
actions_mapping()
click to toggle source
Returns the actions mapping of this controller
# File lib/strongbolt/bolted_controller.rb, line 120 def actions_mapping # Defaults to a duplicate of the standard mapping @actions_mapping ||= ACTIONS_MAPPING.dup end
render(*args)
click to toggle source
It needs to be created afterward, No idea why
# File lib/strongbolt/bolted_controller.rb, line 100 def render(*args) if render_without_authorization? Strongbolt.without_authorization { _render(*args) } else _render(*args) end end
Private Instance Methods
constantize_model(name)
click to toggle source
Try to constantize a class
# File lib/strongbolt/bolted_controller.rb, line 130 def constantize_model(name) name.constantize rescue NameError raise Strongbolt::ModelNotFound, "Model for controller #{controller_name} wasn't found" end