Sha256: 386fb43df885a6912336e617d208a599183a930a1a0c389a62efb475744a964a
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
module Hatchy class Engine < ::Rails::Engine isolate_namespace Hatchy config.generators do |g| g.test_framework :rspec, fixture: false g.fixture_replacement :factory_girl, dir: 'spec/factories' g.assets false g.helper false g.template_engine :haml end # Adds migrations to host application initializer :append_migrations do |app| unless app.root.to_s.match root.to_s config.paths["db/migrate"].expanded.each do |path| app.config.paths["db/migrate"] << path end end end initializer 'Hatchy precompile hook', group: :all do |app| app.config.assets.precompile += %w( hatchy/admin.js hatchy/admin/dashboard.js hatchy/hatchy.js hatchy/home.js hatchy/dashboard.js hatchy/projects/show.js hatchy/projects/edit.js hatchy/projects/contributions/new_contribution.js hatchy/users/edit.js hatchy/hatchy.css hatchy/admin.css ) end generators do require 'hatchy/setup_generator' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hatchy-0.0.6.pre | lib/hatchy/engine.rb |
hatchy-0.0.5.pre | lib/hatchy/engine.rb |