Tuesday, 15 April 2014

ruby on rails 4 - Doorkeeper: How to know when a grant is created? -


I would like to create a membership record when a user accesses an app

whether an incident of concierge is?

My solution was to use a rail supervisor:

Gemfile App / Models / Concierge / access_token_observer.rb:

  Mani 'Railway supervisors'  

/ Blockquote> class gatekeeper :: accesstoken observer & lt; ActiveRecord :: Observer DF after_create (access_token) with # content: # access_token.application_id # access_token.resource_owner_id End End


No comments:

Post a Comment