Commit 17f1dbfa by joeljunstrom Committed by Jon Yurek

Paperclip::Railtie.insert should be wrapped in a initializer block

parent c4ca01d2
......@@ -4,8 +4,10 @@ module Paperclip
if defined? Rails::Railtie
require 'rails'
class Railtie < Rails::Railtie
ActiveSupport.on_load :active_record do
Paperclip::Railtie.insert
initializer 'paperclip.insert_into_active_record' do
ActiveSupport.on_load :active_record do
Paperclip::Railtie.insert
end
end
rake_tasks do
load "tasks/paperclip.rake"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment