1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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