Sha256: 65963827551c9b80660df3e8361429b878d11b08a5d343a36d2b8d1bf7998804
Contents?: true
Size: 614 Bytes
Versions: 4
Compression:
Stored size: 614 Bytes
Contents
# encoding: utf-8 require 'nested_set' require 'rails/railtie' module CollectiveIdea module Acts module NestedSet class Railtie < ::Rails::Railtie config.before_initialize do ActiveSupport.on_load :active_record do include CollectiveIdea::Acts::NestedSet::Base end ActiveSupport.on_load :action_view do include CollectiveIdea::Acts::NestedSet::Helper end end def self.extend_active_record ActiveRecord::Base.send :include, CollectiveIdea::Acts::NestedSet::Base end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nested_set-1.6.8 | lib/nested_set/railtie.rb |
nested_set-1.6.7 | lib/nested_set/railtie.rb |
nested_set-1.6.6 | lib/nested_set/railtie.rb |
nested_set-1.6.5 | lib/nested_set/railtie.rb |