Class: AMD::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/amd/engine.rb

Constant Summary collapse

@@amd_dir =
'amd'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.amd_module(controller) ⇒ Object



16
17
18
# File 'lib/amd/engine.rb', line 16

def self.amd_module(controller)
  "#{controller.controller_path}/amd/#{controller.controller_name}/#{controller.action_name}"
end

Instance Method Details

#setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (AMD::Engine)

    the object that the method was called on



9
10
11
# File 'lib/amd/engine.rb', line 9

def setup
  yield self
end