aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object/try_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* :hocho: TyposAkira Matsuda2015-09-211-1/+1
|
* Small stylistic tweaks for `Delegator#try` patchGodfrey Chan2015-05-191-15/+15
| | | | | | * Rename `ActiveSupport::Try` => `ActiveSupport::Tryable` * Include the modules inline * `private` indentation
* Patch `Delegator` to work with `#try`Nate Smith2015-05-191-0/+64
| | | | | | | | | | | | `Delegator` inherits from `BasicObject`, which means that it will not have `Object#try` defined. It will then delegate the call to the underlying object, which will not (necessarily) respond to the method defined in the enclosing `Delegator`. This patches `Delegator` with the `#try` method to work around the surprising behaviour. Fixes #5790
* Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-2/+2
|
* Bring try! into parity with try.Ari Pollak2014-10-221-4/+8
| | | | Based on commit 5e51bdda.
* We tenderized the wrong method! Object#try already had the yield option, ↵David Heinemeier Hansson2014-08-291-0/+4
| | | | just needed some tenderloving instance_eval to fit the bill
* Move object test files under objectAkshay Vishnoi2014-07-291-0/+91