Please sign in to comment.
Fix environment check for old versions of Rails
In some versions of Rails, the Rails module exists but the env method on it does not. Confirm that the Rails module exists _and_ responds to :env before calling Rails.env instead of RAILS_ENV.
- Loading branch information...
Showing with 1 addition and 1 deletion.