aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-06-13 13:00:43 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-06-13 13:01:32 -0400
commit6e5b0a184d1f9a567c9434e40304b7d322c9f3a0 (patch)
treea04d2c6699dd6439398d0c786081821871ab1426 /activesupport
parent3ff1cfe13c121708c8008c103d60a90666a3d14d (diff)
downloadrails-6e5b0a184d1f9a567c9434e40304b7d322c9f3a0.tar.gz
rails-6e5b0a184d1f9a567c9434e40304b7d322c9f3a0.tar.bz2
rails-6e5b0a184d1f9a567c9434e40304b7d322c9f3a0.zip
Fix missing requires for object/blank
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/ordered_options.rb2
-rw-r--r--activesupport/test/deprecation_test.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/ordered_options.rb b/activesupport/lib/active_support/ordered_options.rb
index 53a55bd986..501ba7fc76 100644
--- a/activesupport/lib/active_support/ordered_options.rb
+++ b/activesupport/lib/active_support/ordered_options.rb
@@ -1,3 +1,5 @@
+require 'active_support/core_ext/object/blank'
+
module ActiveSupport
# Usually key value pairs are handled something like this:
#
diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb
index ec34bd823d..dbde3d2e15 100644
--- a/activesupport/test/deprecation_test.rb
+++ b/activesupport/test/deprecation_test.rb
@@ -143,7 +143,7 @@ class DeprecationTest < ActiveSupport::TestCase
stderr_output = capture(:stderr) {
assert_nil behavior.call('Some error!', ['call stack!'])
}
- assert stderr_output.blank?
+ assert stderr_output.empty?
end
def test_deprecated_instance_variable_proxy