Skip to content

Commit

Permalink
Merge pull request #427 from vinh0604/master
Browse files Browse the repository at this point in the history
Close #427; Fix reify method with regards to attribute assignment
  • Loading branch information
batter committed Oct 1, 2014
2 parents 8ce602c + 091b78e commit d5a8033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paper_trail/version_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def reify(options = {})

# Set all the attributes in this version on the model
attrs.each do |k, v|
if model.respond_to?("#{k}=")
if model.has_attribute?(k)
model[k.to_sym] = v
else
logger.warn "Attribute #{k} does not exist on #{item_type} (Version id: #{id})."
Expand Down

0 comments on commit d5a8033

Please sign in to comment.