Sha256: 391c2cbb1ef376901e9518336db63a5938b2322791b984048b317be2e95b3cd7

Contents?: true

Size: 877 Bytes

Versions: 1

Compression:

Stored size: 877 Bytes

Contents

# load rails
require 'rails'

# it's an engine
require 'acts_as_taggable_on_dynamic/rails/engine'
require 'acts_as_taggable_on_dynamic/rails/version'

# load the dependencies
require('acts-as-taggable-on')

# load our code
require('acts_as_taggable_on_dynamic/dynamic_mass_assignment_authorizer')
require('acts_as_taggable_on_dynamic/dynamic_tag_context_attributes')
require('acts_as_taggable_on_dynamic/dynamic_tag_helpers')
require('acts_as_taggable_on_dynamic/taggable')
require('acts_as_taggable_on_dynamic/tag_owner')
require('acts_as_taggable_on_dynamic/utils')

# handle ActiveRecord stuff
if defined?(ActiveRecord::Base)
  ActiveRecord::Base.extend ActsAsTaggableOnDynamic::Taggable
  ActiveRecord::Base.send :include, ActsAsTaggableOnDynamic::TagOwner
end

if defined?(ActionView::Base)
  ActionView::Base.send :include, ActsAsTaggableOnDynamic::DynamicTagHelpers
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts-as-taggable-on-dynamic-0.0.3 lib/acts_as_taggable_on_dynamic.rb