Commit 17f1dbfa by joeljunstrom Committed by Jon Yurek

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

parent c4ca01d2
......@@ -4,9 +4,11 @@ module Paperclip
if defined? Rails::Railtie
require 'rails'
class Railtie < Rails::Railtie
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"
end
......
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