Sha256: 704e9fce61bc5287ea26c0441969e927d5deed5171b734e46194bbe59dd55249

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

require 'spree_core'
require 'spree_static_content_hooks'

module SpreeStaticContent
  class Engine < Rails::Engine
    def self.activate
      Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
        Rails.env == "production" ? require(c) : load(c)
      end
    end
    config.to_prepare &method(:activate).to_proc
    config.autoload_paths += %W(#{config.root}/lib)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_static_content-0.60.1 lib/spree_static_content.rb
spree_static_content-0.60.0 lib/spree_static_content.rb
spree_static_content-0.40.2 lib/spree_static_content.rb
spree_static_content-0.40.1 lib/spree_static_content.rb
spree_static_content-0.40.0 lib/spree_static_content.rb
spree_static_content-0.30.0 lib/spree_static_content.rb