Skip to content

Commit

Permalink
we also want a _destroy method
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Apr 28, 2014
1 parent a3e2fcf commit c2646c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ooor/field_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def _destroy=(dummy)
@marked_for_destruction = true unless dummy.blank? || ["false", "0", 0].index(dummy)
end

def _destroy
@marked_for_destruction
end

def lazy_load(meth, *args)
@lazy = false
load(rpc_execute('read', [id], (self.class.fast_fields + [meth]).uniq, *args || context)[0]).tap do
Expand Down

0 comments on commit c2646c5

Please sign in to comment.