Sha256: e05a39a06a97205383fb043476c01ac6c2e52e654f0e9c46f2f1fd8109a67759
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
require 'rails/all' require 'cancan' require 'state_machine' require 'paperclip' require 'kaminari' require 'awesome_nested_set' require 'acts_as_list' require 'active_merchant' require 'ransack' module Spree mattr_accessor :user_class def self.user_class if @@user_class.is_a?(Class) raise "Spree.user_class MUST be a String object, not a Class object." elsif @@user_class.is_a?(String) @@user_class.constantize end end # Used to configure Spree. # # Example: # # Spree.config do |config| # config.site_name = "An awesome Spree site" # end # # This method is defined within the core gem on purpose. # Some people may only wish to use the Core part of Spree. def self.config(&block) yield(Spree::Config) end end require 'spree/core/version' require 'spree/core/engine' require 'spree/i18n' require 'spree/money' require 'spree/promo/coupon_applicator' require 'spree/core/delegate_belongs_to' require 'spree/core/ext/active_record' require 'spree/core/permalinks' require 'spree/core/token_resource' require 'spree/core/calculated_adjustments' require 'spree/core/product_duplicator' ActiveRecord::Base.class_eval do include CollectiveIdea::Acts::NestedSet end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_core-2.0.3 | lib/spree/core.rb |