# File lib/delayed/serialization/active_record.rb, line 5 def self.yaml_new(klass, tag, val) if ActiveRecord::VERSION::MAJOR == 3 klass.unscoped.find(val['attributes'][klass.primary_key]) else # Rails 2 klass.with_exclusive_scope { klass.find(val['attributes'][klass.primary_key]) } end rescue ActiveRecord::RecordNotFound raise Delayed::DeserializationError end
Generated with the Darkfish Rdoc Generator 2.