Permalink
Browse files

use ActiveSupport.on_load :active_record instead of an initializer

(cherry picked from commit 67865aac3227bd9c515052f6fbee446b4e724971)
  • Loading branch information...
1 parent bf33af3 commit 7bd613a46dc454c8541972983beea95038c7eb2b @nragaz nragaz committed with jyurek Jun 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/railtie.rb
View
@@ -4,7 +4,7 @@ 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
rake_tasks do

0 comments on commit 7bd613a

Please sign in to comment.