diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-16 14:12:48 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-16 14:14:18 -0500 |
commit | 80873a49af6f52d48224d9c18c60e67c3f9d4731 (patch) | |
tree | b38c3acf193273bad414bf2b6a61120f9c312d8b /activemodel | |
parent | ade479f2b5c49c7906f60cec339cb7a8aafd502a (diff) | |
download | rails-80873a49af6f52d48224d9c18c60e67c3f9d4731.tar.gz rails-80873a49af6f52d48224d9c18c60e67c3f9d4731.tar.bz2 rails-80873a49af6f52d48224d9c18c60e67c3f9d4731.zip |
Require hash/keys inside active_model/callbacks
This file uses assert_valid_keys but it was not being required. You can
reproduce this error with a script that uses this feature by using those
requires:
require 'active_model'
require 'active_model/callbacks'
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/callbacks.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/callbacks.rb b/activemodel/lib/active_model/callbacks.rb index fde3381df2..ea2ed7dff7 100644 --- a/activemodel/lib/active_model/callbacks.rb +++ b/activemodel/lib/active_model/callbacks.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require "active_support/core_ext/array/extract_options" +require "active_support/core_ext/hash/keys" module ActiveModel # == Active \Model \Callbacks |