Module: AutoexecBat::Helper
- Defined in:
- lib/autoexec_bat/helper.rb
Instance Method Summary collapse
Instance Method Details
#autoexec_module(name = nil) ⇒ Object
10 11 12 13 |
# File 'lib/autoexec_bat/helper.rb', line 10 def autoexec_module(name=nil) @autoexec_module = name if name @autoexec_module || default_autoexec_module end |
#default_autoexec_module ⇒ Object
4 5 6 7 8 |
# File 'lib/autoexec_bat/helper.rb', line 4 def default_autoexec_module candidates = controller.controller_path.split('/') << controller.action_name # candidates.unshift "shared" if candidates.length == 2 candidates.map &:camelcase end |