app/models/locomotive/content_entry.rb in locomotivecms-search-0.0.4 vs app/models/locomotive/content_entry.rb in locomotivecms-search-0.0.5

- old
+ new

@@ -11,6 +11,14 @@ end def content_type_slug content_type.slug end + + def indexable_id + if respond_to?(:site_id) + "site_#{site_id}_#{content_type_slug}_#{id}" + else + "#{content_type_slug}_#{id}" + end + end end \ No newline at end of file