Commit 7bd613a4 by Nick Ragaz Committed by Jon Yurek

use ActiveSupport.on_load :active_record instead of an initializer

(cherry picked from commit 67865aac3227bd9c515052f6fbee446b4e724971)
parent bf33af34
...@@ -4,7 +4,7 @@ module Paperclip ...@@ -4,7 +4,7 @@ module Paperclip
if defined? Rails::Railtie if defined? Rails::Railtie
require 'rails' require 'rails'
class Railtie < Rails::Railtie class Railtie < Rails::Railtie
initializer "paperclip.insert_into_active_record" do ActiveSupport.on_load :active_record do
Paperclip::Railtie.insert Paperclip::Railtie.insert
end end
rake_tasks do rake_tasks do
......
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