Skip to content

Commit

Permalink
Added apprequest model
Browse files Browse the repository at this point in the history
  • Loading branch information
pomartel authored and mmangino committed Feb 1, 2011
1 parent a2a37b4 commit b010c06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mogli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ module Mogli
require "mogli/work"
require "mogli/user"
require "mogli/client"
require "mogli/app_client"
require "mogli/app_client"
require "mogli/apprequest"
7 changes: 7 additions & 0 deletions lib/mogli/apprequest.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Mogli
class Apprequest < Model

define_properties :id, :data, :message, :created_time, :application, :from, :to

end
end
1 change: 1 addition & 0 deletions lib/mogli/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def self.recognize?(hash)
has_association :likes, "Page"
has_association :home, "Post"
has_association :accounts, "Page"
has_association :apprequests, "Apprequest"

attr_reader :extended_permissions

Expand Down

0 comments on commit b010c06

Please sign in to comment.