Sha256: 8d806e6477198342da0ae9bdb687d3091ed21e41abce7943689b26602743faa5
Contents?: true
Size: 552 Bytes
Versions: 3
Compression:
Stored size: 552 Bytes
Contents
#represents files that are in the MogileFS database. This model is used for talking to the MogileFS database via #ActiveRecord class Fid < ActiveRecord::Base self.primary_key = "fid" self.table_name = "file" belongs_to :domain, :foreign_key => "dmid" belongs_to :fileclass, :foreign_key => "classid" #If there is no fileclass then it is the default class #@return [String] name of class file belongs to def classname if fileclass fileclass.classname else return 'default' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mogbak-0.2.1 | lib/file.rb |
mogbak-0.2.0 | lib/file.rb |
mogbak-0.1.2 | lib/file.rb |