lib/mls/models/photo.rb in mls-0.2.31 vs lib/mls/models/photo.rb in mls-0.2.32
- old
+ new
@@ -8,9 +8,10 @@
property :updated_at, DateTime
property :file_content_type, String
property :file_name, String
property :file_size, Fixnum
property :url_template, String
+ property :caption, String
def url(style='large', protocol='http')
"#{protocol}://#{MLS.asset_host}/photos/#{style}/#{@digest}.jpg"
end