Sha256: a9f8100b2ea5792b8c9d2605ff78acd0d50529325d3be3f23ac6545bbeaf0301

Contents?: true

Size: 713 Bytes

Versions: 42

Compression:

Stored size: 713 Bytes

Contents

class CabooseRets::AgentMeta < ActiveRecord::Base
  self.table_name = "rets_agents_meta"
  belongs_to :agent, :foreign_key => 'mls_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  ,
    :accepts_listings,
    :weight

end

Version data entries

42 entries across 42 versions & 1 rubygems

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