Module: Wallaby::Prefixable
- Extended by:
- ActiveSupport::Concern
- Included in:
- ResourcesConcern
- Defined in:
- lib/concerns/wallaby/prefixable.rb
Overview
Field helper for model decorator
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- MAPPING_ACTIONS =
{ new: 'form', create: 'form', edit: 'form', update: 'form' }.freeze
Instance Method Summary collapse
-
#wallaby_prefixes ⇒ Array<String>
Prefixes.
Instance Method Details
#wallaby_prefixes ⇒ Array<String>
Returns prefixes.
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/concerns/wallaby/prefixable.rb', line 28 def wallaby_prefixes override_prefixes( options: { mapping_actions: self.class.mapping_actions } ) do |prefixes| PrefixesBuilder.new( controller_class: self.class, prefixes: prefixes, resources_name: current_resources_name, script_name: request.env[SCRIPT_NAME] ).execute end end |