2eecfd8f9d
This allows using `CacheMarkdownField` for models that are not backed by ActiveRecord. When the including class inherits `ActiveRecord::Base` we include `Gitlab::MarkdownCache::ActiveRecord::Extension`. This will cause the markdown fields to be rendered and the generated HTML stored in a `<field>_html` attribute on the record. We also store the version used for generating the markdown. All other classes that include this model will include the `Gitlab::MarkdownCache::Redis::Extension`. This add the `<field>_html` attributes to that model and will generate the html in them. The generated HTML will be cached in redis under the key `markdown_cache:<class>:<id>`. The class this included in must therefore respond to `id`. |
||
---|---|---|
.. | ||
ci | ||
mentionable | ||
storage | ||
token_authenticatable_strategies | ||
access_requestable.rb | ||
atomic_internal_id.rb | ||
avatarable.rb | ||
awardable.rb | ||
batch_destroy_dependent_associations.rb | ||
blob_language_from_git_attributes.rb | ||
blob_like.rb | ||
blocks_json_serialization.rb | ||
bulk_member_access_load.rb | ||
cache_markdown_field.rb | ||
cacheable_attributes.rb | ||
case_sensitivity.rb | ||
chronic_duration_attribute.rb | ||
closed_at_filterable.rb | ||
created_at_filterable.rb | ||
deployable.rb | ||
deployment_platform.rb | ||
deprecated_assignee.rb | ||
descendant.rb | ||
diff_file.rb | ||
diff_positionable_note.rb | ||
discussion_on_diff.rb | ||
each_batch.rb | ||
editable.rb | ||
enum_with_nil.rb | ||
expirable.rb | ||
fast_destroy_all.rb | ||
faster_cache_keys.rb | ||
feature_gate.rb | ||
from_union.rb | ||
ghost_user.rb | ||
group_descendant.rb | ||
has_ref.rb | ||
has_status.rb | ||
has_variable.rb | ||
ignorable_column.rb | ||
iid_routes.rb | ||
importable.rb | ||
issuable.rb | ||
issuable_states.rb | ||
label_eventable.rb | ||
loaded_in_group_list.rb | ||
manual_inverse_association.rb | ||
maskable.rb | ||
mentionable.rb | ||
milestoneish.rb | ||
mirror_authentication.rb | ||
note_on_diff.rb | ||
noteable.rb | ||
optionally_search.rb | ||
participable.rb | ||
presentable.rb | ||
project_features_compatibility.rb | ||
project_services_loggable.rb | ||
prometheus_adapter.rb | ||
protected_branch_access.rb | ||
protected_ref.rb | ||
protected_ref_access.rb | ||
protected_tag_access.rb | ||
reactive_caching.rb | ||
reactive_service.rb | ||
redactable.rb | ||
redis_cacheable.rb | ||
referable.rb | ||
relative_positioning.rb | ||
resolvable_discussion.rb | ||
resolvable_note.rb | ||
routable.rb | ||
select_for_project_authorization.rb | ||
sha_attribute.rb | ||
shardable.rb | ||
sortable.rb | ||
spammable.rb | ||
strip_attribute.rb | ||
subscribable.rb | ||
taskable.rb | ||
throttled_touch.rb | ||
time_trackable.rb | ||
token_authenticatable.rb | ||
triggerable_hooks.rb | ||
uniquify.rb | ||
update_project_statistics.rb | ||
updated_at_filterable.rb | ||
valid_attribute.rb | ||
with_uploads.rb |