Method: Satis::Configuration#help_scopes

Defined in:
lib/satis/configuration.rb

#help_scopes(template, object, additional_scope) ⇒ Object



63
64
65
66
67
68
69
70
# File 'lib/satis/configuration.rb', line 63

def help_scopes(template, object, additional_scope)
  actions = [template.controller.action_name]
  %w[show new edit create update destroy index].each do |action|
    actions << action unless actions.include?(action)
  end

  actions.map { |action| help_scope(template, object, additional_scope, action: action) }
end