Sha256: 86750ffaca87fb1f04a5b7b49b9fe3236626a5b18dcbe179facdd7151f3de2ce

Contents?: true

Size: 424 Bytes

Versions: 41

Compression:

Stored size: 424 Bytes

Contents

class CabooseRets::OfficeMeta < ActiveRecord::Base
  self.table_name = "rets_offices_meta"  
  
  belongs_to :office, :foreign_key => 'lo_code', :primary_key => 'lo_code'
  has_attached_file :image, 
    :path => 'rets/offices/:lo_code_:style.:extension', 
    :styles => {
      :thumb => '100x150>', 
      :large => '200x300>'
    }
  do_not_validate_attachment_file_type :image
  attr_accessible :id, :lo_code
    
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
caboose-rets-0.1.151 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.150 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.149 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.148 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.147 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.146 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.145 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.144 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.143 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.142 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.141 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.140 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.139 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.138 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.137 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.136 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.135 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.134 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.133 app/models/caboose_rets/office_meta.rb
caboose-rets-0.1.132 app/models/caboose_rets/office_meta.rb