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