Sha256: 953427951be45480bae2ed5edcaaac0e2bf3717dc305cbce16a4b140640bc3a5

Contents?: true

Size: 753 Bytes

Versions: 4

Compression:

Stored size: 753 Bytes

Contents

require File.expand_path('../boot', __FILE__)

require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"

Bundler.require(*Rails.groups)
require "spree_purchase_order"

module Dummy
  class Application < Rails::Application

    config.to_prepare do
      Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end

      Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end
    end

    config.active_record.raise_in_transactional_callbacks = true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_purchase_order-3.2.0 spec/dummy/config/application.rb
spree_purchase_order-3.1.0 spec/dummy/config/application.rb
spree_purchase_order-3.0.0 spec/dummy/config/application.rb
spree_purchase_order-3.2.0.rc1 spec/dummy/config/application.rb