Sha256: b22efadad238643394e1b19f127e0eb9ad175b697f745caefb144cbdf504bb47

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

require 'openid/association' 
require 'time'
require 'active_record'

class ActiveRecordOpenidStore::Association < ActiveRecord::Base
  self.table_name= 'open_id_associations'
  attr_accessible :server_url, :handle, :secret, :issued, :lifetime, :assoc_type
  def from_record
    OpenID::Association.new(handle, secret, Time.at(issued), lifetime, assoc_type)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_record_openid_store-0.1.5 app/models/active_record_openid_store/association.rb
active_record_openid_store-0.1.4 app/models/active_record_openid_store/association.rb