Sha256: 6d390bcc6186a1d7fe00da90248a5f9ca9e6569fd3f924f0517c9a26df5c8d7e

Contents?: true

Size: 702 Bytes

Versions: 24

Compression:

Stored size: 702 Bytes

Contents

require 'mail'

# Spree Configuration
SESSION_KEY = '_spree_session_id'
#require 'spree/support/core_ext/array/conversions'

# TODO - Add the lib/plugins stuff maybe?

# Initialize preference system
ActiveRecord::Base.class_eval do
  include Spree::Preferences
  include Spree::Preferences::ModelHooks
end

if MailMethod.table_exists?
  Spree::MailSettings.init
  Mail.register_interceptor(Spree::MailInterceptor)
end

# Add extra support goodies (similar to rails active support)
#class Array #:nodoc:
#  include Spree::Support::CoreExtensions::Array
#end

String.class_eval do
  include SpreeCore::Ext::String
end

LIKE = ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' ? 'ILIKE' : 'LIKE'

Version data entries

24 entries across 24 versions & 6 rubygems

Version Path
spree_core-0.70.7 config/initializers/spree.rb
spree_core-0.70.6 config/initializers/spree.rb
apispree_core-0.0.0 config/initializers/spree.rb
My-Commerce_core-1.1.0 config/initializers/spree.rb
My-Commerce_core-1.0.0 config/initializers/spree.rb
MyCommerceapi-1.0.0 core/config/initializers/spree.rb
MyCommerce-0.0.3 core/config/initializers/spree.rb
rfcommerce_core-0.0.3 config/initializers/spree.rb
spree_core-0.60.6 config/initializers/spree.rb
spree_core-0.70.5 config/initializers/spree.rb
spree_core-0.70.4 config/initializers/spree.rb
spree_core-0.60.5 config/initializers/spree.rb
spree_core-0.70.3 config/initializers/spree.rb
spree_core-0.70.2 config/initializers/spree.rb
spree_core-0.60.4 config/initializers/spree.rb
spree_core-0.60.3 config/initializers/spree.rb
spree_core-0.70.1 config/initializers/spree.rb
spree_core-0.70.0 config/initializers/spree.rb
spree_core-0.60.2 config/initializers/spree.rb
spree_core-0.70.0.rc2 config/initializers/spree.rb