Method: Satis::Configuration#help_scopes

Defined in:
lib/satis/configuration.rb

#help_scopes(template, object, additional_scope) ⇒ Object



53
54
55
56
57
58
59
60
# File 'lib/satis/configuration.rb', line 53

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