You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
338 B
24 lines
338 B
# frozen_string_literal: true
|
|
|
|
module UserSettings::Glue
|
|
def to_model
|
|
self
|
|
end
|
|
|
|
def to_key
|
|
''
|
|
end
|
|
|
|
def persisted?
|
|
false
|
|
end
|
|
|
|
def type_for_attribute(key)
|
|
self.class.definition_for(key)&.type
|
|
end
|
|
|
|
def has_attribute?(key) # rubocop:disable Naming/PredicateName
|
|
self.class.definition_for?(key)
|
|
end
|
|
end
|