Skip to content

Commit

Permalink
Avoid warning about circular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wkrsz committed Jan 26, 2017
1 parent 61170b8 commit e470be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wicked_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def pdf_from_url(url, options = {})
private

def in_development_mode?
return Rails.env == 'development' if defined?(Rails.env)
return Rails.env == 'development' if defined?(Rails) && defined?(Rails.env)
RAILS_ENV == 'development' if defined?(RAILS_ENV)
end

Expand Down

0 comments on commit e470be3

Please sign in to comment.