Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing properties to Album and Photo

  • Loading branch information...
commit 919ccecdc935342ee73b8a278ee6decd9f79d8db 1 parent 1dd9cfb
@timols authored
Showing with 5 additions and 5 deletions.
  1. +4 −4 lib/mogli/album.rb
  2. +1 −1  lib/mogli/photo.rb
View
8 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
View
2  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"
Please sign in to comment.
Something went wrong with that request. Please try again.