Sha256: 20ca529b33d11c9ba3064ee236ab9829341f348f4dd93d6a9a3f1ba9c2e21543
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
require 'active_record/version' module Gutentag def self.dirtier @dirtier end def self.dirtier=(dirtier) @dirtier = dirtier end def self.normaliser @normaliser ||= Gutentag::TagName end def self.normaliser=(normaliser) @normaliser = normaliser end def self.tag_validations @tag_validations ||= Gutentag::TagValidations end def self.tag_validations=(tag_validations) @tag_validations = tag_validations end end require 'gutentag/active_record' require 'gutentag/dirty' require 'gutentag/persistence' require 'gutentag/tag_name' require 'gutentag/tag_names' require 'gutentag/tag_validations' if ActiveRecord::VERSION::MAJOR == 3 Gutentag.dirtier = Gutentag::Dirty elsif ActiveRecord::VERSION::MAJOR == 4 && ActiveRecord::VERSION::MINOR < 2 Gutentag.dirtier = Gutentag::Dirty end if defined?(Rails::Engine) require 'gutentag/engine' else require 'active_record' ActiveRecord::Base.send :include, Gutentag::ActiveRecord require File.expand_path( './../app/models/gutentag/tag', File.dirname(__FILE__) ) require File.expand_path( './../app/models/gutentag/tagging', File.dirname(__FILE__) ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gutentag-0.8.0 | lib/gutentag.rb |