module Subledger::Domain::Roles::Updatable
Public Class Methods
included(base)
click to toggle source
# File lib/subledger/domain/roles/updatable.rb, line 5 def self.included base base.extend UpdatableClass end
Public Instance Methods
update()
click to toggle source
# File lib/subledger/domain/roles/updatable.rb, line 19 def update updatable = dup updatable.send :increment_version args = updatable.attributes updated = self.class.update args initialize updated.attributes self end