Commit be74cebe by Dmitrii Samoilov Committed by Prem Sichanugrist

making paperclip compatible not only with ActiveRecord ORM

This patch only avoid reference to `ActiveRecord::Base.logger` if `ActiveRecord` is not available
parent 76bac64a
......@@ -128,7 +128,7 @@ module Paperclip
end
def logger #:nodoc:
ActiveRecord::Base.logger
defined?(ActiveRecord::Base) ? ActiveRecord::Base.logger : Rails.logger
end
def logging? #:nodoc:
......
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