change back to module. causing problems in dev with reopen implementation
This commit is contained in:
parent
aeb42cc165
commit
0348a2a9c0
|
@ -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
|
Loading…
Reference in New Issue