Skip to content

Commit

Permalink
small fix on ruby_version check
Browse files Browse the repository at this point in the history
The ruby version check could happen before Rails.logger gets intialized
so we cannot assume that Rails.logger is not nil.
Example: https://travis-ci.org/errbit/errbit/jobs/8719703
  • Loading branch information
arthurnn committed Jul 10, 2013
1 parent d52c33b commit a8f66d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/support/ruby_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# squarm for answers
def raise_version_error(message)
puts message
Rails.logger.info(message) if defined?(Rails)
Rails.logger.info(message) if defined?(Rails) && Rails.logger
raise
end

Expand Down

0 comments on commit a8f66d8

Please sign in to comment.