change back to module. causing problems in dev with reopen implementation

This commit is contained in:
cowboycoded 2011-02-13 14:16:12 -05:00
parent aeb42cc165
commit 0348a2a9c0
1 changed files with 8 additions and 1 deletions

View File

@ -3,8 +3,15 @@ require "rails"
module Impressionist module Impressionist
class Engine < Rails::Engine class Engine < Rails::Engine
initializer 'impressionist.extend_ar' do initializer 'impressionist.extend_ar' do |app|
ActiveRecord::Base.extend Impressionist::Impressionable ActiveRecord::Base.extend Impressionist::Impressionable
end end
initializer 'impressionist.controller' do
ActiveSupport.on_load(:action_controller) do
include ImpressionistController::InstanceMethods
extend ImpressionistController::ClassMethods
end
end
end end
end end