Skip to content

Commit

Permalink
Merge pull request #79 from byroot/more-missing-properties
Browse files Browse the repository at this point in the history
add missing properties in Application, User and Comment
  • Loading branch information
mmangino committed Sep 29, 2011
2 parents d482b23 + e753e7e commit dcf7a0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mogli/application.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Mogli
class Application < Model

define_properties :id, :name, :description, :category, :subcategory, :link
define_properties :id, :name, :description, :category, :subcategory, :link, :canvas_name

has_association :feed, "Post"
has_association :posts, "Post"
Expand Down
2 changes: 1 addition & 1 deletion lib/mogli/comment.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Mogli
class Comment < Model

define_properties :id, :message, :created_time
define_properties :id, :message, :created_time, :count
creation_properties :message
hash_populating_accessor :from, "User","Page"

Expand Down
2 changes: 1 addition & 1 deletion lib/mogli/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class User < Profile
define_properties :username, :first_name, :last_name, :link, :about, :birthday, :gender,
:email, :website, :timezone, :updated_time, :verified, :political, :bio,
:relationship_status, :locale, :religion, :quotes, :third_party_id,
:inspirational_people, :sports, :with, :middle_name
:inspirational_people, :sports, :with, :middle_name, :category

def self.recognize?(hash)
!hash.has_key?("category")
Expand Down

0 comments on commit dcf7a0b

Please sign in to comment.