Class: Fulcrum::Cloudfuji::EventObservers::AppObserver
- Inherits:
-
Cloudfuji::EventObserver
- Object
- Cloudfuji::EventObserver
- Fulcrum::Cloudfuji::EventObservers::AppObserver
- Defined in:
- lib/fulcrum/cloudfuji/event_observers/app_observer.rb
Instance Method Summary collapse
-
#app_claimed ⇒ Object
This is here for eventual lazy-registration.
Instance Method Details
#app_claimed ⇒ Object
This is here for eventual lazy-registration. Create a fake user on rake cloudfuji:install, and when the app is claimed, we’ll get this event with the user info, so we convert the existing user and update their info here.
10 11 12 13 |
# File 'lib/fulcrum/cloudfuji/event_observers/app_observer.rb', line 10 def app_claimed User.order("created_at").first.update_attributes(:email => params['data']['email'], :ido_id => params['data']['ido_id']) end |