1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

Naming/MemoizedInstanceVariableName

This commit is contained in:
Jared Beck 2021-03-21 00:27:41 -04:00
parent 1c5c57198e
commit 049d7d635e
2 changed files with 2 additions and 8 deletions

View file

@ -29,13 +29,6 @@ Metrics/CyclomaticComplexity:
Metrics/PerceivedComplexity:
Max: 9 # Goal: 7
# Offense count: 1
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/paper_trail/model_config.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
# SupportedStyles: snake_case, normalcase, non_integer

View file

@ -122,8 +122,9 @@ module PaperTrail
setup_callbacks_from_options options[:on]
end
# @api private
def version_class
@_version_class ||= @model_class.version_class_name.constantize
@version_class ||= @model_class.version_class_name.constantize
end
private