We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f61153 commit 5942630Copy full SHA for 5942630
app/models/better_together/page.rb
@@ -58,7 +58,7 @@ def content_blocks
58
def as_indexed_json(_options = {}) # rubocop:todo Metrics/MethodLength
59
as_json(
60
only: [:id],
61
- methods: [:title, :slug, *self.class.localized_attribute_list.keep_if do |a|
+ methods: [:title, :name, :slug, *self.class.localized_attribute_list.keep_if do |a|
62
a.starts_with?('title' || a.starts_with?('slug'))
63
end],
64
include: {
@@ -70,6 +70,11 @@ def as_indexed_json(_options = {}) # rubocop:todo Metrics/MethodLength
70
)
71
end
72
73
+ # Needed for elasticsearch results to work properly (April 22, 2025)
74
+ def name
75
+ title
76
+ end
77
+
78
def primary_image
79
hero_block&.background_image_file
80
0 commit comments