aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/arguments.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-10-10 21:38:59 -0300
committerGitHub <noreply@github.com>2016-10-10 21:38:59 -0300
commitc2fa53606d3c98ac8dd079a1e5b22da3290a513b (patch)
treef6cb51b750c1ab0e725a4ecf41a5386af2b0bd8c /activejob/lib/active_job/arguments.rb
parent36f6ab2d8e0ef84f520bb6169b61a8d79f222cfc (diff)
parent6a78e0ecd6122a6b1be9a95e6c4e21e10e429513 (diff)
downloadrails-c2fa53606d3c98ac8dd079a1e5b22da3290a513b.tar.gz
rails-c2fa53606d3c98ac8dd079a1e5b22da3290a513b.tar.bz2
rails-c2fa53606d3c98ac8dd079a1e5b22da3290a513b.zip
Merge pull request #26755 from rafaelfranca/deprecations
Remove deprecations in Active Model, Action View and Active Job
Diffstat (limited to 'activejob/lib/active_job/arguments.rb')
-rw-r--r--activejob/lib/active_job/arguments.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/activejob/lib/active_job/arguments.rb b/activejob/lib/active_job/arguments.rb
index 23e237c1b7..523a0e7f33 100644
--- a/activejob/lib/active_job/arguments.rb
+++ b/activejob/lib/active_job/arguments.rb
@@ -5,22 +5,10 @@ module ActiveJob
#
# Wraps the original exception raised as +cause+.
class DeserializationError < StandardError
- def initialize(e = nil) #:nodoc:
- if e
- ActiveSupport::Deprecation.warn("Passing #original_exception is deprecated and has no effect. " \
- "Exceptions will automatically capture the original exception.", caller)
- end
-
+ def initialize #:nodoc:
super("Error while trying to deserialize arguments: #{$!.message}")
set_backtrace $!.backtrace
end
-
- # The original exception that was raised during deserialization of job
- # arguments.
- def original_exception
- ActiveSupport::Deprecation.warn("#original_exception is deprecated. Use #cause instead.", caller)
- cause
- end
end
# Raised when an unsupported argument type is set as a job argument. We