Class: ContactMethod
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ContactMethod
- Includes:
- Checkable, FlatPriority, HasLanguage, HasUuid, Toggleable
- Defined in:
- app/models/contact_method.rb
Overview
Contact method
Attributes:
contact_type_id [ContactType]
created_at [DateTime]
data [jsonb]
language_id [Language], optional
name [string], optional
priority [integer]
updated_at [DateTime]
uuid [uuid]
value [string]
visible [boolean]
Constant Summary collapse
- NAME_LIMIT =
50
- VALUE_LIMIT =
255
Class Method Summary collapse
Methods included from FlatPriority
Class Method Details
.[](slug) ⇒ Object
40 41 42 |
# File 'app/models/contact_method.rb', line 40 def self.[](slug) ContactType[slug]&.contact_methods&.list_for_visitors end |
.entity_parameters ⇒ Object
44 45 46 |
# File 'app/models/contact_method.rb', line 44 def self.entity_parameters i[contact_type_id language_id name priority value visible] end |