Permalink
Browse files

Make Gemfile evaluable in plugin Gemfile

  • Loading branch information...
pcreux committed Jul 16, 2012
1 parent 4835f24 commit a860a6c1bacda4f4308bc0453125aad1585ae011
Showing with 3 additions and 1 deletion.
  1. +3 −1 Gemfile
View
@@ -2,7 +2,9 @@ source 'http://rubygems.org'
gemspec
-require File.expand_path('../spec/support/detect_rails_version', __FILE__)
+ACTIVE_ADMIN_PATH = File.dirname(__FILE__) unless defined?(ACTIVE_ADMIN_PATH)
+
+require File.expand_path('spec/support/detect_rails_version', ACTIVE_ADMIN_PATH)
rails_version = detect_rails_version
gem 'rails', rails_version

0 comments on commit a860a6c

Please sign in to comment.