aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/coders
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-03-27 20:22:05 +0530
committerVipul A M <vipulnsward@gmail.com>2013-03-27 20:39:36 +0530
commitb2f7c460767c2ce544d80399ce7d0d2cbc3aa7cb (patch)
tree19374cb58a35a2fec4b78926953153814e858bb0 /activerecord/lib/active_record/coders
parent81b7ebf7056e23d2614d3071402536d9184ddeed (diff)
downloadrails-b2f7c460767c2ce544d80399ce7d0d2cbc3aa7cb.tar.gz
rails-b2f7c460767c2ce544d80399ce7d0d2cbc3aa7cb.tar.bz2
rails-b2f7c460767c2ce544d80399ce7d0d2cbc3aa7cb.zip
drop errors constant
Diffstat (limited to 'activerecord/lib/active_record/coders')
-rw-r--r--activerecord/lib/active_record/coders/yaml_column.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/coders/yaml_column.rb b/activerecord/lib/active_record/coders/yaml_column.rb
index f6cdc67b4d..8d22942a06 100644
--- a/activerecord/lib/active_record/coders/yaml_column.rb
+++ b/activerecord/lib/active_record/coders/yaml_column.rb
@@ -3,7 +3,6 @@ require 'yaml'
module ActiveRecord
module Coders # :nodoc:
class YAMLColumn # :nodoc:
- RESCUE_ERRORS = [ ArgumentError, Psych::SyntaxError ]
attr_accessor :object_class
@@ -34,7 +33,7 @@ module ActiveRecord
obj ||= object_class.new if object_class != Object
obj
- rescue *RESCUE_ERRORS
+ rescue ArgumentError, Psych::SyntaxError
yaml
end
end