aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/object/blank.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-07-22 00:33:02 +0200
committerXavier Noria <fxn@hashref.com>2016-07-22 00:33:02 +0200
commitaea0e5cd709e0fc53e1ba4e87235b8ee3f4bc155 (patch)
treea892044654be3fc71b2d713002689eaa8eba1bb5 /activesupport/lib/active_support/core_ext/object/blank.rb
parent21c6f810ac9beb92cd99aeb07aba2a81c11f1ab0 (diff)
downloadrails-aea0e5cd709e0fc53e1ba4e87235b8ee3f4bc155.tar.gz
rails-aea0e5cd709e0fc53e1ba4e87235b8ee3f4bc155.tar.bz2
rails-aea0e5cd709e0fc53e1ba4e87235b8ee3f4bc155.zip
adds require for Regexp#match?
Diffstat (limited to 'activesupport/lib/active_support/core_ext/object/blank.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/object/blank.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb
index 08fb3d5420..045731d752 100644
--- a/activesupport/lib/active_support/core_ext/object/blank.rb
+++ b/activesupport/lib/active_support/core_ext/object/blank.rb
@@ -1,3 +1,5 @@
+require 'active_support/core_ext/regexp'
+
class Object
# An object is blank if it's false, empty, or a whitespace string.
# For example, +false+, '', ' ', +nil+, [], and {} are all blank.