Sha256: a319bf84ea94f0582cfe6521f8cad59e085d7e4c2a739ba2ae650ea129c9fde3
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
module Shoppe class Engine < ::Rails::Engine isolate_namespace Shoppe if Shoppe.respond_to?(:root) config.autoload_paths << File.join(Shoppe.root, 'lib') end # We don't want any automatic generators in the engine. config.generators do |g| g.orm :active_record g.test_framework false g.stylesheets false g.javascripts false g.helper false end config.assets.precompile += ['shoppe/sub.css'] initializer 'shoppe.initialize' do |app| # Preload the config Shoppe.config # Validate the initial config Shoppe.validate_live_config :store_name, :email_address, :currency_unit, :tax_name # Load our migrations into the application's db/migrate path 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 generators do require 'shoppe/setup_generator' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shoppe-0.0.15 | lib/shoppe/engine.rb |
shoppe-0.0.14 | lib/shoppe/engine.rb |
shoppe-0.0.13 | lib/shoppe/engine.rb |