mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
90a7915ab2
[#5311 state: resolved] ActiveModel::Validations uses Hash#except, but does not require it from ActiveSupport. (This wasn't showing up in the tests, because it was required in the helper, and was also required in ActiveModel::Serialization). Signed-off-by: José Valim <jose.valim@gmail.com>
20 lines
487 B
Ruby
20 lines
487 B
Ruby
require File.expand_path('../../../../load_paths', __FILE__)
|
|
|
|
lib = File.expand_path("#{File.dirname(__FILE__)}/../../lib")
|
|
$:.unshift(lib) unless $:.include?('lib') || $:.include?(lib)
|
|
|
|
require 'config'
|
|
require 'active_model'
|
|
require 'active_support/core_ext/string/access'
|
|
|
|
# Show backtraces for deprecated behavior for quicker cleanup.
|
|
ActiveSupport::Deprecation.debug = true
|
|
|
|
require 'rubygems'
|
|
require 'test/unit'
|
|
|
|
begin
|
|
require 'ruby-debug'
|
|
Debugger.start
|
|
rescue LoadError
|
|
end
|