diff options
author | Xavier Noria <fxn@hashref.com> | 2016-10-27 09:13:38 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-10-27 09:13:55 +0200 |
commit | 56832e791f3ec3e586cf049c6408c7a183fdd3a1 (patch) | |
tree | 6dcbbf04047cf7b7bbcdaf83410c6b872b1d3928 /activemodel/lib/active_model | |
parent | b27a08735c90116d788cd87441205fba663ce6c3 (diff) | |
download | rails-56832e791f3ec3e586cf049c6408c7a183fdd3a1.tar.gz rails-56832e791f3ec3e586cf049c6408c7a183fdd3a1.tar.bz2 rails-56832e791f3ec3e586cf049c6408c7a183fdd3a1.zip |
let Regexp#match? be globally available
Regexp#match? should be considered to be part of the Ruby core library. We are
emulating it for < 2.4, but not having to require the extension is part of the
illusion of the emulation.
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/attribute_methods.rb | 1 | ||||
-rw-r--r-- | activemodel/lib/active_model/validations/format.rb | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index 96709486f3..1441b146f8 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -1,6 +1,5 @@ require "concurrent/map" require "mutex_m" -require "active_support/core_ext/regexp" module ActiveModel # Raised when an attribute is not defined. diff --git a/activemodel/lib/active_model/validations/format.rb b/activemodel/lib/active_model/validations/format.rb index e4ea42f8f4..fa183885ab 100644 --- a/activemodel/lib/active_model/validations/format.rb +++ b/activemodel/lib/active_model/validations/format.rb @@ -1,4 +1,3 @@ -require "active_support/core_ext/regexp" module ActiveModel module Validations |