Skip to content

Commit

Permalink
Merge pull request collectiveidea#334 from earnold/patch-1
Browse files Browse the repository at this point in the history
Stop squashing active record errors when a record cannot be found
  • Loading branch information
betamatt committed Jan 19, 2012
2 parents bf83e26 + 8d39077 commit 8e5f3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/serialization/active_record.rb
Expand Up @@ -9,7 +9,7 @@ def self.yaml_new(klass, tag, val)
klass.with_exclusive_scope { klass.find(val['attributes'][klass.primary_key]) }
end
rescue ActiveRecord::RecordNotFound
raise Delayed::DeserializationError
raise Delayed::DeserializationError, "ActiveRecord::RecordNotFound, class: #{klass} , primary key: #{val['attributes'][klass.primary_key]} "
end

def to_yaml_properties
Expand Down

0 comments on commit 8e5f3ec

Please sign in to comment.