Move AR include into engine file.

This commit is contained in:
Cory Schires 2011-11-04 10:27:13 -05:00
parent 5386874eca
commit aef6acc583
2 changed files with 3 additions and 5 deletions

View File

@ -69,5 +69,3 @@ module Impressionist
end
end
ActiveRecord::Base.send(:include, Impressionist::Impressionable)

View File

@ -4,7 +4,7 @@ require "rails"
module Impressionist
class Engine < Rails::Engine
initializer 'impressionist.extend_ar' do |app|
ActiveRecord::Base.extend Impressionist::Impressionable
ActiveRecord::Base.send(:include, Impressionist::Impressionable)
end
initializer 'impressionist.controller' do