Class: Operations::FeatureFlagsClient

Inherits:
ApplicationRecord show all
Includes:
TokenAuthenticatable
Defined in:
app/models/operations/feature_flags_client.rb

Class Method Summary collapse

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Class Method Details

.find_for_project_and_token(project, token) ⇒ Object


18
19
20
21
22
23
# File 'app/models/operations/feature_flags_client.rb', line 18

def self.find_for_project_and_token(project, token)
  return unless project
  return unless token

  where(project_id: project).find_by_token(token)
end