Module: Eco::API::MicroCases::People::ApplyChanges::SetAccount::AccountExcluded
- Defined in:
- lib/eco/api/microcases/people/apply_changes/set_account/account_excluded.rb
Instance Method Summary collapse
-
#account_excluded(person, options) ⇒ Array<String>
The account parameters that should not be included.
Instance Method Details
#account_excluded(person, options) ⇒ Array<String>
Returns the account parameters that should not be included.
11 12 13 14 15 16 17 18 19 |
# File 'lib/eco/api/microcases/people/apply_changes/set_account/account_excluded.rb', line 11 def account_excluded(person, ) [].tap do |account_excluded| next if person.new? account_excluded.push('policy_group_ids') if .dig(:exclude, :policy_groups) account_excluded.push('default_tag') if .dig(:exclude, :default_tag) account_excluded.push('login_provider_ids') if .dig(:exclude, :login_providers) end end |