module PowerApi::GeneratorHelper::ControllerActionsHelper
Constants
- PERMITTED_ACTIONS
Attributes
controller_actions[R]
Public Instance Methods
collection_actions?()
click to toggle source
# File lib/power_api/generator_helper/controller_actions_helper.rb, line 20 def collection_actions? index? || create? end
controller_actions=(actions)
click to toggle source
# File lib/power_api/generator_helper/controller_actions_helper.rb, line 8 def controller_actions=(actions) @controller_actions = actions.blank? ? PERMITTED_ACTIONS : actions & PERMITTED_ACTIONS end
resource_actions?()
click to toggle source
# File lib/power_api/generator_helper/controller_actions_helper.rb, line 16 def resource_actions? show? || update? || destroy? end
update_or_create?()
click to toggle source
# File lib/power_api/generator_helper/controller_actions_helper.rb, line 24 def update_or_create? update? || create? end