aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/arguments.rb
diff options
context:
space:
mode:
authorjoker1007 <kakyoin.hierophant@gmail.com>2014-12-21 20:57:46 +0900
committerjoker1007 <kakyoin.hierophant@gmail.com>2014-12-21 21:03:16 +0900
commit7b76f05cd169e3cfcf1dee4abb64d7ec79197d28 (patch)
tree13475ffbf2d8229b7a55f233a7ea203af3678565 /activejob/lib/active_job/arguments.rb
parent651bba1bfe1c7d2946b8f560bb12c45b0440a12a (diff)
downloadrails-7b76f05cd169e3cfcf1dee4abb64d7ec79197d28.tar.gz
rails-7b76f05cd169e3cfcf1dee4abb64d7ec79197d28.tar.bz2
rails-7b76f05cd169e3cfcf1dee4abb64d7ec79197d28.zip
Add 'require' for Hash#with_indifferent_access
ActiveJob::Arguments uses Hash#with_indifferent_access. But, activejob gem does not require Hash extension library. When we use activejob as standalone, we need extra require statement. This is unhandy. This commit fixes it.
Diffstat (limited to 'activejob/lib/active_job/arguments.rb')
-rw-r--r--activejob/lib/active_job/arguments.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activejob/lib/active_job/arguments.rb b/activejob/lib/active_job/arguments.rb
index e2c076eb3f..752be6898e 100644
--- a/activejob/lib/active_job/arguments.rb
+++ b/activejob/lib/active_job/arguments.rb
@@ -1,3 +1,5 @@
+require 'active_support/core_ext/hash/indifferent_access'
+
module ActiveJob
# Raised when an exception is raised during job arguments deserialization.
#