Sha256: 719b1b1944cae772714f2c3cc52956a3fe623f3580c18826754c503b82d5597e

Contents?: true

Size: 686 Bytes

Versions: 10

Compression:

Stored size: 686 Bytes

Contents

class CabooseRets::AgentMeta < ActiveRecord::Base
  self.table_name = "rets_agents_meta"
  belongs_to :agent, :foreign_key => 'matrix_unique_id', :primary_key => 'la_code'
  has_attached_file :image,
    :path => 'rets/agent_meta/:id_:style.:extension',
    :default_url => "https://cabooseit.s3.amazonaws.com/assets/shared/default_profile.png",
    :styles => {
      :thumb => '300x300>',
      :medium => '600x600>',
      :large => '900x900>'
    }
  do_not_validate_attachment_file_type :image
  attr_accessible :id,
    :la_code         ,
    :hide            ,
    :bio             ,
    :contact_info    ,
    :assistant_to    ,
    :designation     ,
    :image_location

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
caboose-rets-0.1.36 app/models/caboose_rets/agent_meta.rb
caboose-rets-0.1.35 app/models/caboose_rets/agent_meta.rb
caboose-rets-0.1.34 app/models/caboose_rets/agent_meta.rb
caboose-rets-0.1.33 app/models/caboose_rets/agent_meta.rb
caboose-rets-0.1.32 app/models/caboose_rets/agent_meta.rb
caboose-rets-0.1.31 app/models/caboose_rets/agent_meta.rb
caboose-rets-0.1.30 app/models/caboose_rets/agent_meta.rb
caboose-rets-0.1.29 app/models/caboose_rets/agent_meta.rb
caboose-rets-0.1.28 app/models/caboose_rets/agent_meta.rb
caboose-rets-0.1.27 app/models/caboose_rets/agent_meta.rb