lib/git-precommit/tasks.rb in git-precommit-1.2.2 vs lib/git-precommit/tasks.rb in git-precommit-1.2.3

- old
+ new

@@ -1,8 +1,9 @@ if defined? Rails ENVIRONMENT = Rails.env else - ENVIRONMENT = RAILS_ENV || "development" + ENVIRONMENT = RAILS_ENV if defined? RAILS_ENV + ENVIRONMENT ||= "development" end if %w[development test].include? ENVIRONMENT require "git_precommit"