Sha256: 30f3579df2d204c5eb34468971a2ffa643972b3adff258c7fefe1ed7ded2134f

Contents?: true

Size: 746 Bytes

Versions: 16

Compression:

Stored size: 746 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'] || ENV['RAILS_ENV'] =~ /development|test/ && 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

16 entries across 16 versions & 3 rubygems

Version Path
radiant-tags-extension-1.6.10 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
johnsbrn-has_many_polymorphs-2.13.3 lib/has_many_polymorphs.rb
johnsbrn-has_many_polymorphs-2.13.4 lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.9 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.8 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.7 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.6 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.5 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.4 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.3 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.2 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.1 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.6.0 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
radiant-tags-extension-1.5.1 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb
has_many_polymorphs-2.13 lib/has_many_polymorphs.rb
has_many_polymorphs-2.2 lib/has_many_polymorphs.rb