lib/acts_as_changesetable/acts/changeable_history.rb
# Checks the associated changeable and updates it if needed
Checks the associated changeable and updates it if needed
Checks the associated changeable and updates it if needed
def sync_changeable!
      unless(self.changeable)
        self.changeable_class.new_from_history(self)
      end
      self.changeable.sync_changeable! if(self.changeable and self.changeable.updated_at < self.updated_at)
    end
def sync_changeable! unless ( self . changeable ) self . changeable_class . new_from_history ( self ) end self . changeable . sync_changeable! if ( self . changeable and self . changeable . updated_at < self . updated_at ) end
Checks the associated changeable and updates it if needed
Checks the associated changeable and updates it if needed