lib/gitmodel/persistable.rb in gitmodel-0.0.5 vs lib/gitmodel/persistable.rb in gitmodel-0.0.6

- old
+ new

@@ -77,10 +77,14 @@ end def new_record? @new_record || false end - + + def persisted? + !new_record? + end + # Valid options are: # :transaction # OR: # :branch # :commit_message