aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/arguments.rb
Commit message (Collapse)AuthorAgeFilesLines
* Allow keyword arguments to work with ActiveJobSean Griffin2015-01-301-9/+40
| | | | | | | | | | | | | | | | | Unfortunately, the HashWithIndifferent access approach is insufficient for our needs. It's perfectly reasonable to want to use keyword arguments with Active Job, which we will see as a symbol keyed hash. For Ruby to convert this back to keyword arguments, it must deserialize to a symbol keyed hash. There are two primary changes to the serialization behavior. We first treat a HWIA separately, and mark it as such so we can convert it back into a HWIA during deserialization. For normal hashes, we keep a list of all symbol keys, and convert them back to symbol keys after deserialization. Fixes #18741.
* Add 'require' for Hash#with_indifferent_accessjoker10072014-12-211-0/+2
| | | | | | | | | 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.
* Add documentation on Active Job.mo khan2014-10-021-0/+6
| | | | | | | This adds documentation for the Active Job API. It includes documentation on how to configure the queue_adapter, and how to create new jobs. It adds links to the various other sections of the Active Job documentation.
* Fix string/gid collision in job argumentsJeremy Kemper2014-09-251-3/+27
| | | | Serialize Global IDs as special objects, distinguishable from Strings
* Tighten up AJ::Arguments and its testsJeremy Kemper2014-09-141-8/+14
| | | | | * Disallow deserialization of non-primitive objects * Broaden coverage; remove superfluous tests
* Bump globalid versionAbdelkader Boudih2014-09-121-1/+1
|
* Fix a warningMatthew Draper2014-09-051-1/+1
|
* [Active Job] Try to deserialize with GlobalID only strings and globalidsCristian Bica2014-09-031-1/+3
|
* Fix for double ActiveJob::DeserializationErorrCristian Bica2014-09-031-5/+5
|
* Fix a few typos [ci skip]Robin Dupret2014-08-241-1/+1
|
* Raise ActiveJob::SerializationError when cannot serialize job argumentsCristian Bica2014-08-241-2/+13
|
* [ActiveJob] raise DeserializationError when got an error deserializingCristian Bica2014-08-171-0/+12
|
* [ActiveJob] Use globalid gemAbdelkader Boudih2014-08-171-5/+2
|
* [ActiveJob] Convert ActiveJob::Arguments into moduleAbdelkader Boudih2014-08-171-6/+7
|
* Add 'activejob/' from commit '14f74a8331f94150dfee653224de8fc837797709'Abdelkader Boudih2014-08-121-0/+52
git-subtree-dir: activejob git-subtree-mainline: b45b99894a60eda434abec94d133a1cfd8de2dda git-subtree-split: 14f74a8331f94150dfee653224de8fc837797709