-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
e.g. when a controller has 10 action methods, and the before/after/around callback configuration will need to specify 9 actions to exclude the 1 action.
# before
act_before :fetch_events, action: :index
act_before :fetch_event, action: [:show, :edit, :update, :destroy, :print, :postpone, :add_tags, :add_categories]
# after
act_before :fetch_events, action: { if: :index } # or action: :index
act_before :fetch_event, action: { unless: :index }Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request