class Moonrope::BeforeAction
Attributes
actions[RW]
@return [Array] the names of actions to execute this request on
block[RW]
@return [Proc] the block to execute in this action
controller[R]
@return [Moonrope::Controller] the associated controller
Public Class Methods
new(controller)
click to toggle source
Initilize a new BeforeAction
@param controller [Moonrope::Controller]
# File lib/moonrope/before_action.rb, line 18 def initialize(controller) @controller = controller @actions = [] end