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.
|
||||
#++
|
||||
|
||||
begin
|
||||
require 'action_controller'
|
||||
rescue LoadError
|
||||
unless defined?(ActionController)
|
||||
begin
|
||||
require File.dirname(__FILE__) + '/../../actionpack/lib/action_controller'
|
||||
$:.unshift "#{File.dirname(__FILE__)}/../../actionpack/lib"
|
||||
require 'action_controller'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
require_gem 'actionpack', '>= 1.9.1'
|
||||
|
@ -48,4 +47,4 @@ ActionMailer::Base.class_eval do
|
|||
helper MailHelper
|
||||
end
|
||||
|
||||
silence_warnings { TMail::Encoder.const_set("MAX_LINE_LEN", 200) }
|
||||
silence_warnings { TMail::Encoder.const_set("MAX_LINE_LEN", 200) }
|
||||
|
|
Loading…
Reference in a new issue