Skip to content

Commit 7f61153

Browse files
committed
Rubocop fixes
1 parent ac1e454 commit 7f61153

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/models/better_together/page.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ def content_blocks
5555
end
5656

5757
# Customize the data sent to Elasticsearch for indexing
58-
def as_indexed_json(_options = {})
58+
def as_indexed_json(_options = {}) # rubocop:todo Metrics/MethodLength
5959
as_json(
6060
only: [:id],
61-
methods: [:title, :slug, *self.class.localized_attribute_list.keep_if { |a| a.starts_with?('title' || a.starts_with?('slug')) }],
61+
methods: [:title, :slug, *self.class.localized_attribute_list.keep_if do |a|
62+
a.starts_with?('title' || a.starts_with?('slug'))
63+
end],
6264
include: {
6365
rich_text_blocks: {
6466
only: %i[id],

0 commit comments

Comments
 (0)