Class: Kwipper::Session

Inherits:
Model
  • Object
show all
Defined in:
app/models/session.rb

Constant Summary

Constants inherited from Model

Model::DB_FILE_NAME, Model::DB_NAME, Model::ID_COLUMN, Model::UnknownAttribute

Instance Attribute Summary

Attributes inherited from Model

#id

Instance Method Summary collapse

Methods inherited from Model

all, attr_array_to_hash, column, count, create, db, destroy, exists?, find, generate_id, hash_to_key_vals, #initialize, normalize_value_for_db, #save, #sql, sql, table_name, #update, update, where

Constructor Details

This class inherits a constructor from Kwipper::Model

Instance Method Details

#destroyObject



8
9
10
# File 'app/models/session.rb', line 8

def destroy
  super self.class.normalize_value_for_db(id, :to_s)
end