Skip to content

Commit

Permalink
Merge pull request #122 from timols/master
Browse files Browse the repository at this point in the history
Added missing properties to Albums and Photos
  • Loading branch information
mmangino committed Sep 21, 2012
2 parents 1dd9cfb + 919ccec commit 7c2083d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/mogli/album.rb
@@ -1,12 +1,12 @@
module Mogli
class Album < Model

define_properties :id, :name, :description, :location, :cover_photo, :privacy, :link, :count, :created_time, :updated_time
define_properties :id, :name, :description, :location, :cover_photo, :privacy, :link, :count, :created_time, :updated_time,
:likes, :can_upload
creation_properties :name, :description

hash_populating_accessor :from, "User","Page"
has_association :photos, "Photo"
has_association :comments, "Comment"

end
end
2 changes: 1 addition & 1 deletion lib/mogli/photo.rb
@@ -1,7 +1,7 @@
module Mogli
class Photo < Model
define_properties :id, :name, :tags, :picture, :source, :height, :width, :images, :link, :icon,
:created_time, :updated_time, :position, :comments, :likes, :place
:created_time, :updated_time, :position, :comments, :likes, :place, :name_tags
creation_properties :message

hash_populating_accessor :from, "User","Page"
Expand Down

0 comments on commit 7c2083d

Please sign in to comment.