mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-30 20:03:43 +01:00
a9b5598c97
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
23 lines
338 B
Ruby
23 lines
338 B
Ruby
# 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
|