Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixes the logger issue properly #7

Merged
merged 2 commits into from Jun 24, 2011
Jump to file or symbol
Failed to load files and symbols.
+5 −1
Split
View
@@ -12,7 +12,11 @@
module Paperclip
class << self
def logger
- Mongoid::Config.logger
+ if Mongoid::Config.logger.present?
+ Mongoid::Config.logger
+ else
+ Rails.logger
+ end
end
end
end