Skip to content

Commit

Permalink
Updating documentation to add instructions on User > ConsumerToken as…
Browse files Browse the repository at this point in the history
…sociation
  • Loading branch information
3en committed Jan 5, 2011
1 parent e01655b commit 9e9b72d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ And you could do:

The client method gives you a OAuth::AccessToken which you can use to perform rest operations on the client site - see http://oauth.rubyforge.org/rdoc/classes/OAuth/AccessToken.html

If you are using Mongoid you want to add an embeds_many association in your user model:

embeds_many :consumer_tokens

=== Custom ConsumerToken models

Before creating the FireEagleToken model the plugin checks if a class already exists by that name or if we provide an api wrapper for it. This allows you to create a better token model that uses an existing ruby gem.
Expand Down

0 comments on commit 9e9b72d

Please sign in to comment.