Class: TentD::API::Profile::Notify

Inherits:
Middleware show all
Defined in:
lib/tentd/api/profile.rb

Instance Method Summary collapse

Methods inherited from Middleware

#call, #initialize

Methods included from Authorizable

#authorize_env!, #authorize_env?

Constructor Details

This class inherits a constructor from TentD::API::Middleware

Instance Method Details

#action(env) ⇒ Object



49
50
51
52
53
54
55
# File 'lib/tentd/api/profile.rb', line 49

def action(env)
  return env unless env.updated_info
  Array(env.updated_info).each do |info|
    Notifications.profile_info_update(:profile_info_id => info.id)
  end
  env
end