motion/model/model.rb
def save_without_transaction(options = {})
      return false if @deleted
      call_hooks 'save' do
        # Existing object implies update in place
        action = 'add'
        set_auto_date_field 'updated_at'
        if new_record?
          set_auto_date_field 'created_at'
          result = do_insert(options)
        else
          result = do_update(options)
          action = 'update'
        end
        @new_record = false
        @dirty = false
        issue_notification(:action => action)
        result
      end
    end
def save_without_transaction(options = {})
      return false if @deleted
      call_hooks 'save' do
        # Existing object implies update in place
        action = 'add'
        set_auto_date_field 'updated_at'
        if new_record?
          set_auto_date_field 'created_at'
          result = do_insert(options)
        else
          result = do_update(options)
          action = 'update'
        end
        @new_record = false
        @dirty = false
        issue_notification(:action => action)
        result
      end
    end
def save_without_transaction ( options = { } ) return false if @deleted call_hooks 'save' do # Existing object implies update in place action = 'add' set_auto_date_field 'updated_at' if new_record? set_auto_date_field 'created_at' result = do_insert ( options ) else result = do_update ( options ) action = 'update' end @new_record = false @dirty = false issue_notification ( :action => action ) result end end
Performs the save.
 This is separated to allow #save to do any transaction handling that might be necessary.
Performs the save . This is separated to allow #save to do any transaction handling that might be necessary .