Permalink
Browse files

Removing warning message in persistence

  • Loading branch information...
Veraticus committed Apr 14, 2012
1 parent 6cdf66c commit 662078aab2011d273855afbf7ef8267bb3c6fdd2
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/dynamoid/persistence.rb
@@ -178,7 +178,8 @@ def persist
self.id = SecureRandom.uuid if self.id.nil? || self.id.blank?
Dynamoid::Adapter.write(self.class.table_name, self.dump)
save_indexes
- !(@new_record = false)
+ @new_record = false
+ true
end
end

0 comments on commit 662078a

Please sign in to comment.