lib/maglev/active_model/unit_of_work.rb
# save is somewhat supported by checking if the record is valid and only adding it to the
# transaction if it is. Otherwise it just returns false but does not fail the transaction,
# since it is expected that the false result is to be used to handle things manually
save is somewhat supported by checking if the record is valid and only adding it to the
transaction if it is. Otherwise it just returns false but does not fail the transaction,
since it is expected that the false result is to be used to handle things manually
save is somewhat supported by checking if the record is valid and only adding it to the transaction if it is . Otherwise it just returns false but does not fail the transaction since it is expected that the false result is to be used to handle things manually
def save(*args)
          if valid?
            UnitOfWork.add(self) { super }
            true
          else
            false
          end
        end
def save ( * args ) if valid? UnitOfWork . add ( self ) { super } true else false end end
save is somewhat supported by checking if the record is valid and only adding it to the
transaction if it is.
save is somewhat supported by checking if the record is valid and only adding it to the transaction if it is .
args
<not_specific>