Sha256: 9ad8f44f5f9943e5d7988d0ba34a7a08bb6f845edfe1b1aec1dc859ab8cf9d89
Contents?: true
Size: 454 Bytes
Versions: 7
Compression:
Stored size: 454 Bytes
Contents
class ObjectAccess < ActiveRecord::Base self.establish_connection("#{Rails.env}_remote_purl_database".to_sym) self.table_name = "object_access" attr_accessible :date_accessed def self.create_from_purl(purl) if purl.nil? return end create do |object_access| object_access.date_accessed= purl.date_created object_access.repo_object_id= purl.repo_object_id object_access.purl_id= purl.purl_id end end end
Version data entries
7 entries across 7 versions & 1 rubygems