Class: Organization

Inherits:
Taxonomy show all
Extended by:
FriendlyId
Includes:
Foreman::ThreadSession::OrganizationModel, ParameterValidators, Parameterizable::ByIdName
Defined in:
app/models/taxonomies/organization.rb

Instance Method Summary collapse

Methods included from ParameterValidators

#parameters_symbol, #validate_parameters_names

Methods inherited from Taxonomy

all_import_missing_ids, all_mismatcheds, as_taxonomy, #destroy_taxable_taxonomies, expand, #expire_topbar_cache, #ignore?, ignore?, inherited, no_taxonomy_scope, #notification_recipients_ids, #parameters, #params_objects, #parent_params, #parents_with_params, #taxonomy_inherited_params_objects, types

Methods included from TopbarCacheExpiry

#expire_topbar_cache_within_controller

Methods included from NestedAncestryCommon

#get_title, #nested, #parent_name, #title, #to_param

Methods included from Authorizable

#authorized?, #check_permissions_after_save

Methods included from PermissionName

#permission_name

Methods inherited from ApplicationRecord

graphql_type, #logger, logger

Methods included from AuditAssociations::AssociationsDefinitions

#audit_associations, #audited, #configure_dirty_associations, #normalize_associations

Instance Method Details

#dupObject


25
26
27
28
29
# File 'app/models/taxonomies/organization.rb', line 25

def dup
  new = super
  new.locations = locations
  new
end

#lookup_value_matchObject


31
32
33
# File 'app/models/taxonomies/organization.rb', line 31

def lookup_value_match
  "organization=#{title}"
end

#sti_nameObject


35
36
37
# File 'app/models/taxonomies/organization.rb', line 35

def sti_name
  _("organization")
end