mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
prefer sibling actionpack
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
a28817948d
commit
e381eccbe2
1 changed files with 4 additions and 5 deletions
|
@ -21,11 +21,10 @@
|
|||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#++
|
||||
|
||||
unless defined?(ActionController)
|
||||
begin
|
||||
$:.unshift "#{File.dirname(__FILE__)}/../../actionpack/lib"
|
||||
require 'action_controller'
|
||||
rescue LoadError
|
||||
begin
|
||||
require File.dirname(__FILE__) + '/../../actionpack/lib/action_controller'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
require_gem 'actionpack', '>= 1.9.1'
|
||||
|
|
Loading…
Reference in a new issue