Class: Stimpack::Integrations::Rails
- Inherits:
-
Object
- Object
- Stimpack::Integrations::Rails
- Defined in:
- lib/stimpack/integrations/rails.rb
Instance Method Summary collapse
- #create_engines ⇒ Object
-
#initialize(app) ⇒ Rails
constructor
A new instance of Rails.
- #inject_paths ⇒ Object
Constructor Details
#initialize(app) ⇒ Rails
Returns a new instance of Rails.
9 10 11 12 13 14 15 16 17 |
# File 'lib/stimpack/integrations/rails.rb', line 9 def initialize(app) @app = app Stimpack.config.paths.freeze Stimpack.configure_packs create_engines inject_paths end |
Instance Method Details
#create_engines ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/stimpack/integrations/rails.rb', line 19 def create_engines Packs.all.reject(&:is_gem?).each do |pack| next unless pack.['engine'] create_engine(pack) end end |