Permalink
Browse files

Added missing properties to Album and Photo

  • Loading branch information...
1 parent 1dd9cfb commit 919ccecdc935342ee73b8a278ee6decd9f79d8db @timols committed Sep 19, 2012
Showing with 5 additions and 5 deletions.
  1. +4 −4 lib/mogli/album.rb
  2. +1 −1 lib/mogli/photo.rb
View
@@ -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
View
@@ -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"

0 comments on commit 919ccec

Please sign in to comment.