Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added missing properties to Albums and Photos #122

Merged
merged 1 commit into from

2 participants

@timols

Added missing properties

@mmangino mmangino merged commit 7c2083d into mmangino:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 19, 2012
  1. @timols
This page is out of date. Refresh to see the latest.
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"
Something went wrong with that request. Please try again.