Module: RailsImporter::Setup

Included in:
RailsImporter
Defined in:
lib/rails_importer/setup.rb

Constant Summary collapse

@@importers =
[]
@@router_name =
:main_app

Instance Method Summary collapse

Instance Method Details

#importer_class(importer_key) ⇒ Object



20
21
22
# File 'lib/rails_importer/setup.rb', line 20

def importer_class(importer_key)
  @@importers.select{|i| i.key.to_s == importer_key.to_s}.first
end

#parent_controller_classObject



16
17
18
# File 'lib/rails_importer/setup.rb', line 16

def parent_controller_class
  @@parent_controller_class || ::ApplicationController
end

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

Yields:

  • (_self)

Yield Parameters:



12
13
14
# File 'lib/rails_importer/setup.rb', line 12

def setup
  yield self if block_given?
end