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.RC1 config/initializers/spree.rb
spree_core-0.60.1 config/initializers/spree.rb
spree_core-0.60.0 config/initializers/spree.rb
spree_core-0.60.0.RC1 config/initializers/spree.rb