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'
This commit is contained in:
Rafael Mendonça França 2019-01-16 14:12:48 -05:00
parent ade479f2b5
commit 80873a49af
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
1 changed files with 1 additions and 0 deletions

View File

@ -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