Sha256: 7f4e297d07dcbc45c1d91ae26c6bf44df70053a17f50fc9fe5dfac85964e956e
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
require 'spree_core' require 'formtastic' module SpreeStaticContent class Engine < Rails::Engine engine_name 'spree_static_content' def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| Rails.application.config.cache_classes ? require(c) : load(c) end Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/**/*.rb")) do |c| Rails.application.config.cache_classes ? 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_static_content-0.70.3 | lib/spree_static_content.rb |