Sha256: 964a6ce1cf904d22d1858560ab71289fda27d8f5bda8d2075dd79cc67c9ee765

Contents?: true

Size: 723 Bytes

Versions: 16

Compression:

Stored size: 723 Bytes

Contents

# This is required so that Houston Instances can define
# its own routes and models and views.

module Houston
  class Engine < ::Rails::Engine

    # Precompile assets for the instance
    initializer :assets do |config|
      Rails.application.config.assets.precompile += %w(
        application.js
        application.css )
    end

    # Include the Engine's migrations with the Application
    # http://pivotallabs.com/leave-your-migrations-in-your-rails-engines/
    initializer :append_migrations do |app|
      unless app.root.to_s.match root.to_s
        config.paths["db/migrate"].expanded.each do |expanded_path|
          app.config.paths["db/migrate"] << expanded_path
        end
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
houston-core-0.9.2 templates/new-instance/lib/houston/engine.rb
houston-core-0.9.1 templates/new-instance/lib/houston/engine.rb
houston-core-0.9.0 templates/new-instance/lib/houston/engine.rb
houston-core-0.9.0.rc1 templates/new-instance/lib/houston/engine.rb
houston-core-0.8.4 templates/new-instance/lib/houston/engine.rb
houston-core-0.8.3 templates/new-instance/lib/houston/engine.rb
houston-core-0.8.2 templates/new-instance/lib/houston/engine.rb
houston-core-0.8.1 templates/new-instance/lib/houston/engine.rb
houston-core-0.8.0 templates/new-instance/lib/houston/engine.rb
houston-core-0.8.0.pre2 templates/new-instance/lib/houston/engine.rb
houston-core-0.8.0.pre templates/new-instance/lib/houston/engine.rb
houston-core-0.7.0 templates/new-instance/lib/houston/engine.rb
houston-core-0.7.0.beta4 templates/new-instance/lib/houston/engine.rb
houston-core-0.7.0.beta3 templates/new-instance/lib/houston/engine.rb
houston-core-0.7.0.beta2 templates/new-instance/lib/houston/engine.rb
houston-core-0.7.0.beta templates/new-instance/lib/houston/engine.rb