Sha256: caf4ee415df77b9d6607401c307936c73954f26c0fa2f54d8f4a494462a99465

Contents?: true

Size: 324 Bytes

Versions: 3

Compression:

Stored size: 324 Bytes

Contents

require 'has_machine_tags'
require 'has_machine_tags/tag_methods'

#attempt to load constant
::Tag rescue nil
if Object.const_defined? :Tag
  ::Tag.class_eval %[include HasMachineTags::TagMethods]
else
  require 'has_machine_tags/tag'
end

require 'has_machine_tags/tagging'
ActiveRecord::Base.send :include, HasMachineTags

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
cldwalker-has_machine_tags-0.1.4 rails/init.rb
cldwalker-has_machine_tags-0.1.5 rails/init.rb
has_machine_tags-0.1.6 rails/init.rb