Sha256: 7a7a8c81da2748c40846a8629a42727da9a6a9e543cb8fd61f719dde0d02a1ce
Contents?: true
Size: 1.05 KB
Versions: 10
Compression:
Stored size: 1.05 KB
Contents
# Spree Configuration SESSION_KEY = '_spree_session_id' #require 'spree/support/core_ext/array/conversions' # TODO - Add the lib/plugins stuff maybe? # Initialize preference system (and attribute_fu) # # We need to hand-load attribute_fu stuff here because we call # ActiveRecord#has_many method before the attribute_fu plugin is # completely loaded. ActiveRecord::Base.class_eval do include AttributeFu::Associations include Spree::Preferences include Spree::Preferences::ModelHooks end ActionView::Helpers::FormBuilder.class_eval do include AttributeFu::AssociatedFormHelper end # Initialize mail server settings Spree::Preferences::MailSettings.init # Add extra support goodies (similar to rails active support) #class Array #:nodoc: # include Spree::Support::CoreExtensions::Array #end # Ryan Bates - http://railscasts.com/episodes/112 class ActiveRecord::Base named_scope :conditions, lambda { |*args| {:conditions => args} } end class String #:nodoc: include Spree::Support::CoreExtensions::String end CalendarDateSelect.format = :american
Version data entries
10 entries across 10 versions & 2 rubygems