Class: UserDetail
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- UserDetail
- Extended by:
- Gitlab::Utils::Override
- Includes:
- CacheMarkdownField
- Defined in:
- app/models/user_detail.rb
Constant Summary
Constants included from CacheMarkdownField
CacheMarkdownField::INVALIDATED_BY
Instance Method Summary collapse
Methods included from Gitlab::Utils::Override
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
Methods included from CacheMarkdownField
#attribute_invalidated?, #banzai_render_context, #cached_html_for, #cached_html_up_to_date?, #can_cache_field?, #latest_cached_markdown_version, #local_version, #parent_user, #refresh_markdown_cache, #refresh_markdown_cache!, #rendered_field_content, #skip_project_check?, #updated_cached_html_for
Methods inherited from ApplicationRecord
at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order
Instance Method Details
#bio_html ⇒ Object
16 17 18 |
# File 'app/models/user_detail.rb', line 16 def bio_html read_attribute(:bio_html) || bio end |
#invalidated_markdown_cache? ⇒ Boolean
24 25 26 |
# File 'app/models/user_detail.rb', line 24 def invalidated_markdown_cache? self.class.column_names.include?('bio_html') && super end |