Sha256: d7a948c01e26dbf44552c44fae9fbabcc3a817f2510ca90de1d559efa0e61bb1
Contents?: true
Size: 889 Bytes
Versions: 60
Compression:
Stored size: 889 Bytes
Contents
require_relative '../base' module Udongo::Search::ResultObjects module Backend # This class should be used to further manipulate any of the data provided # through #search_context or Udongo::Search::ResultObjects::Base. # # A search context class is accessible through #search_context. This # gives you access to #search_context.controller, which can be used to # call routes upon. # # Example of: If an autocomplete requires additional data to be rendered in # the partial (think another model, or an API call), one could override # the #locals method to include more variables. You could do this directly # in the partial as well, but this way we have separation of concerns. class Page < Udongo::Search::ResultObjects::Base def url search_context.controller.edit_backend_page_path(searchable) end end end end
Version data entries
60 entries across 60 versions & 1 rubygems