lib/granite/form/model/persistence.rb in granite-form-0.2.0 vs lib/granite/form/model/persistence.rb in granite-form-0.3.0
- old
+ new
@@ -24,35 +24,17 @@
def persisted?
!!@persisted
end
- def destroyed?
- !!@destroyed
- end
-
def marked_for_destruction?
- @marked_for_destruction
+ false
end
- def mark_for_destruction
- @marked_for_destruction = true
- end
-
- def _destroy
- marked_for_destruction?
- end
-
private
def mark_persisted!
@persisted = true
- @destroyed = false
- end
-
- def mark_destroyed!
- @persisted = false
- @destroyed = true
end
end
end
end
end