Skip to content

Commit ad95d87

Browse files
committed
TODO Rubocop
1 parent 00c30b8 commit ad95d87

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/concerns/better_together/member.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def membership_class_for(record)
119119
assoc.to_s.include?(joinable_type.underscore)
120120
end
121121

122-
membership_class_name&.to_s&.classify&.constantize
122+
membership_class_name&.to_s&.classify&.constantize # rubocop:todo Style/SafeNavigationChainLength
123123
end
124124

125125
# Generate a unique cache key for each instance and method

app/models/better_together/platform.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def cache_key
4747
"#{super}/#{css_block&.updated_at&.to_i}"
4848
end
4949

50+
# rubocop:todo Layout/LineLength
5051
# TODO: Updating the css_block contents does not update the platform cache key. Needs platform attribute update before changes take effect.
52+
# rubocop:enable Layout/LineLength
5153
def css_block
5254
@css_block ||= blocks.find_by(type: 'BetterTogether::Content::Css')
5355
end

0 commit comments

Comments
 (0)