Displaying 1 result from an estimated 1 matches for "status_valid".
2006 Jul 01
0
activerecord generating wrong syntax with postgresql
...rtificate.find_first(options[:certificate_id])
If I change it to this, it works:
bc = SECA::Backend::Certificate.find(:first, :conditions => ["id = ?",
options[:certificate_id]])
And this is the model:
module SECA
module Backend
class Certificate < ActiveRecord::Base
STATUS_VALID = 0
STATUS_REVOKED = 1
STATUS_EXPIRED = 2
has_one :data, :class_name => ''CertificateData'',
:foreign_key => ''certificate_id'', :dependent => true
#has_one :serial, :class_name => ''Serial'', :dependent =&g...