Sha256: 1a4b609a4fb09ff17e3f156ce861985037dd9d6532d1fae1bfa3a50663518312
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 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 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shoppe-0.0.12 | lib/shoppe/engine.rb |
shoppe-0.0.11 | lib/shoppe/engine.rb |
shoppe-0.0.10 | lib/shoppe/engine.rb |
shoppe-0.0.9 | lib/shoppe/engine.rb |