Sha256: 2438e10c520efc7155191056e47a23bae6c702134a3bc857c06241f0760f9421

Contents?: true

Size: 747 Bytes

Versions: 6

Compression:

Stored size: 747 Bytes

Contents

require 'active_record'

RAILS_DEFAULT_LOGGER = nil unless defined? RAILS_DEFAULT_LOGGER

require 'has_many_polymorphs/reflection'
require 'has_many_polymorphs/association'
require 'has_many_polymorphs/class_methods'

require 'has_many_polymorphs/support_methods'
require 'has_many_polymorphs/base'

class ActiveRecord::Base
  extend ActiveRecord::Associations::PolymorphicClassMethods 
end

if ENV['HMP_DEBUG'] or ENV['RAILS_ENV'] =~ /development|test/ and ENV['USER'] == 'eweaver'
  require 'has_many_polymorphs/debugging_tools' 
end

if defined? Rails and RAILS_ENV and RAILS_ROOT
  _logger_warn "rails environment detected"
  require 'has_many_polymorphs/configuration'
  require 'has_many_polymorphs/autoload'
end

_logger_debug "loaded ok"

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
johnsbrn-has_many_polymorphs-2.13.1 lib/has_many_polymorphs.rb
johnsbrn-has_many_polymorphs-2.13 lib/has_many_polymorphs.rb
has_many_polymorphs-2.12 lib/has_many_polymorphs.rb
spree-0.6.0 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
spree-0.7.0 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
spree-0.7.1 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb