lib/her/model/orm.rb
# Similar to .save_existing but raises ResourceInvalid if save fails
Similar to .save_existing but raises ResourceInvalid if save fails
Similar to . save_existing but raises ResourceInvalid if save fails
def save_existing!(id, params)
          resource = new(params.merge(primary_key => id))
          resource.save!
          resource
        end
def save_existing! ( id , params ) resource = new ( params . merge ( primary_key => id ) ) resource . save! resource end
Similar to .save_existing but raises ResourceInvalid if save fails
Similar to . save_existing but raises ResourceInvalid if save fails
id
<not_specific>
params
<not_specific>