Skip to content

Commit

Permalink
Merge pull request mmangino#96 from intinig/master
Browse files Browse the repository at this point in the history
Added a lot of missing attributes on Comment / App / Status
  • Loading branch information
mmangino committed Dec 20, 2011
2 parents d55c3b5 + 04f74c7 commit fa7b72d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/mogli/application.rb
@@ -1,7 +1,7 @@
module Mogli
class Application < Model

define_properties :id, :name, :description, :category, :subcategory, :link, :canvas_name
define_properties :id, :name, :description, :category, :subcategory, :link, :canvas_name, :namespace, :icon_url, :logo_url, :weekly_active_users, :monthly_active_users

has_association :feed, "Post"
has_association :posts, "Post"
Expand All @@ -10,4 +10,4 @@ class Application < Model


end
end
end
8 changes: 4 additions & 4 deletions lib/mogli/comment.rb
@@ -1,9 +1,9 @@
module Mogli
class Comment < Model
define_properties :id, :message, :created_time, :count, :likes

define_properties :id, :message, :created_time, :count, :likes, :can_remove, :message_tags, :user_likes
creation_properties :message
hash_populating_accessor :from, "User","Page"

end
end
end
4 changes: 3 additions & 1 deletion lib/mogli/status.rb
@@ -1,7 +1,9 @@
module Mogli
class Status < Model
define_properties :id, :message, :updated_time, :created_time
define_properties :id, :message, :updated_time, :created_time, :likes

hash_populating_accessor :from, "User", "Page"

has_association :comments, "Comment"
end
end

0 comments on commit fa7b72d

Please sign in to comment.