Skip to content

Commit

Permalink
Add similar photo id
Browse files Browse the repository at this point in the history
  • Loading branch information
darrennix committed Jun 18, 2013
1 parent 758a6aa commit 37991f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mls/models/photo.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class MLS::Photo < MLS::Resource
property :file_size, Fixnum property :file_size, Fixnum
property :url_template, String property :url_template, String
property :caption, String property :caption, String
property :similar_subject_id, Fixnum, :serialize => false


def url(style='700x467#', protocol='http') def url(style='700x467#', protocol='http')
"#{protocol}://#{MLS.image_host}/#{digest}.jpg?s=#{URI.escape(style)}" "#{protocol}://#{MLS.image_host}/#{digest}.jpg?s=#{URI.escape(style)}"
Expand Down

0 comments on commit 37991f5

Please sign in to comment.