lib/dynamoid/document.rb in dynamoid-0.1.0 vs lib/dynamoid/document.rb in dynamoid-0.1.1

- old
+ new

@@ -25,10 +25,12 @@ end module ClassMethods def create(attrs = {}) obj = self.new(attrs) - obj.save && obj.new_record = false + obj.run_callbacks(:create) do + obj.save && obj.new_record = false + end obj end def build(attrs = {}) self.new(attrs) \ No newline at end of file