module Sequel::Plugins::SkipSavingColumns::InstanceMethods

Private Instance Methods

_insert_values() click to toggle source

Skip the columns the model has marked to skip when inserting.

   # File lib/sequel/plugins/skip_saving_columns.rb
81 def _insert_values
82   _save_removed_skipped_columns(Hash[super])
83 end
_save_removed_skipped_columns(hash) click to toggle source

Remove any columns the model has marked to skip when saving.

    # File lib/sequel/plugins/skip_saving_columns.rb
 98 def _save_removed_skipped_columns(hash)
 99   model.skip_saving_columns.each do |column|
100     hash.delete(column)
101   end
102 
103   hash
104 end
_save_update_all_columns_hash() click to toggle source

Skip the columns the model has marked to skip when updating all columns.

Calls superclass method
   # File lib/sequel/plugins/skip_saving_columns.rb
87 def _save_update_all_columns_hash
88   _save_removed_skipped_columns(super)
89 end
_save_update_changed_colums_hash() click to toggle source

Skip the columns the model has marked to skip when updating only changed columns.

Calls superclass method
   # File lib/sequel/plugins/skip_saving_columns.rb
93 def _save_update_changed_colums_hash
94   _save_removed_skipped_columns(super)
95 end