Show
Ignore:
Timestamp:
09/26/2007 03:52:10 (14 months ago)
Author:
zimbatm
Message:

Working on Sessions and database :

  • FIX: Session table was always created
  • FIX: Sessions weren't stored correctly because of the custom
    non-autoincrement id. Using SQL injection to bypass the forced "id" :-]
    (aka. where opinionated software is not always good)
  • ENHANCEMENT: Added index for sessions's hashid for faster lookup
  • FIX: 'sqlite3_api' was loaded after the connection.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/camping/db.rb

    r214 r225  
    7575Camping::S.sub! /def\s*Y[;\s]*self[;\s]*end/, $AR_EXTRAS 
    7676Object.constants.map{|c|Object.const_get(c)}.each do |c| 
    77   c::Models.module_eval $AR_EXTRAS if c.respond_to?(:run) 
     77  c::Models.module_eval $AR_EXTRAS if c.respond_to?(:goes) 
    7878end