module Guard::UI
def action_with_scopes(action, scope)
-
scope
(Hash
) -- hash with a guard or a group scope -
action
(String
) -- the action to show
def action_with_scopes(action, scope) titles = Guard.state.scope.titles(scope) info "#{action} #{titles.join(', ')}" end