lib/nested_set/railtie.rb in nested_set-1.6.4 vs lib/nested_set/railtie.rb in nested_set-1.6.5
- old
+ new
@@ -6,14 +6,14 @@
module Acts
module NestedSet
class Railtie < ::Rails::Railtie
config.before_initialize do
ActiveSupport.on_load :active_record do
- ActiveRecord::Base.send(:include, CollectiveIdea::Acts::NestedSet::Base)
+ include CollectiveIdea::Acts::NestedSet::Base
end
ActiveSupport.on_load :action_view do
- ActionView::Base.send(:include, CollectiveIdea::Acts::NestedSet::Helper)
+ include CollectiveIdea::Acts::NestedSet::Helper
end
end
def self.extend_active_record
ActiveRecord::Base.send :include, CollectiveIdea::Acts::NestedSet::Base