aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2019-01-16 14:12:48 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2019-01-16 14:14:18 -0500
commit80873a49af6f52d48224d9c18c60e67c3f9d4731 (patch)
treeb38c3acf193273bad414bf2b6a61120f9c312d8b
parentade479f2b5c49c7906f60cec339cb7a8aafd502a (diff)
downloadrails-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'
-rw-r--r--activemodel/lib/active_model/callbacks.rb1
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