lib/wicked_pdf.rb in wicked_pdf-0.7.4 vs lib/wicked_pdf.rb in wicked_pdf-0.7.5
- old
+ new
@@ -43,10 +43,10 @@
private
def in_development_mode?
(defined?(Rails) && Rails.env == 'development') ||
- (RAILS_ENV && RAILS_ENV == 'development')
+ (defined?(RAILS_ENV) && RAILS_ENV == 'development')
end
def on_windows?
Config::CONFIG['target_os'] == 'mingw32'
end