Sha256: d1790c71a235f881cbfc5d37355d08056adc26c0bf5581b7dd6c80c764075eb2
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
require 'spree_core' require 'rdiscount' module SpreeEssentials class << self # Stores an essential-aware extension for use later def register(key, extension) essentials[key] = extension end # Looks up an extension name def has?(essential) essentials.keys.include?(essential.to_sym) end # Returns the array of essential-aware extensions def essentials @essentials ||= {} end end class Engine < Rails::Engine config.autoload_paths += %W(#{config.root}/lib) initializer :assets do |config| Rails.application.config.assets.precompile += %w( markitup.css date.js jquery.autodate.js jquery.markitup.js markdown.set.js ) end config.to_prepare do #loads application's model / class decorators Dir.glob File.expand_path("../../app/**/*_decorator.rb", __FILE__) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end #loads application's deface view overrides Dir.glob File.expand_path("../../app/overrides/*.rb", __FILE__) do |c| Rails.application.config.cache_classes ? require(c) : load(c) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_essentials-0.4.0.rc2 | lib/spree_essentials.rb |