Skip to content

Commit

Permalink
Merge pull request #3931 from activeadmin/use-latest-rails-as-default
Browse files Browse the repository at this point in the history
use most recent Rails version by default
  • Loading branch information
timoschilling committed May 4, 2015
2 parents 9847bd7 + fe861b9 commit 6fdde38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/detect_rails_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
TRAVIS_RAILS_VERSIONS = TRAVIS_CONFIG['env']['matrix'].grep(/RAILS=(.*)/){ $1 }
end

DEFAULT_RAILS_VERSION ||= TRAVIS_RAILS_VERSIONS.first
DEFAULT_RAILS_VERSION ||= TRAVIS_RAILS_VERSIONS.last

def detect_rails_version
version = version_from_file || ENV['RAILS'] || DEFAULT_RAILS_VERSION
Expand Down

0 comments on commit 6fdde38

Please sign in to comment.