Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

save content_entry_slug for ContentEntry

  • Loading branch information...
commit 6cc929256ab8169e311de69118dab534b1a0f4cb 1 parent dfef37a
@themgt authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/models/locomotive/content_entry.rb
View
6 app/models/locomotive/content_entry.rb
@@ -6,10 +6,14 @@
search_by :options_for_search
def options_for_search
- store = [:_slug, _label_field_name, :site_id, :content_type_slug]
+ store = [:_slug, _label_field_name, :site_id, :content_type_slug, :content_entry_slug]
content_type.entries_custom_fields.where(searchable: true).map(&:name) << {store: store}
end
+ def content_entry_slug
+ _slug
+ end
+
def content_type_slug
content_type.slug
end
Please sign in to comment.
Something went wrong with that request. Please try again.