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

Version Path
udongo-6.3.1 lib/udongo/search/result_objects/backend/page.rb
udongo-6.3.0 lib/udongo/search/result_objects/backend/page.rb
udongo-6.2.1 lib/udongo/search/result_objects/backend/page.rb
udongo-6.2.0 lib/udongo/search/result_objects/backend/page.rb
udongo-6.1.0 lib/udongo/search/result_objects/backend/page.rb
udongo-6.0.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.9.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.8.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.7.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.6.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.5.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.4.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.3.1 lib/udongo/search/result_objects/backend/page.rb
udongo-5.3.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.2.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.1.0 lib/udongo/search/result_objects/backend/page.rb
udongo-5.0.2 lib/udongo/search/result_objects/backend/page.rb
udongo-5.0.1 lib/udongo/search/result_objects/backend/page.rb
udongo-5.0.0 lib/udongo/search/result_objects/backend/page.rb
udongo-4.0.0 lib/udongo/search/result_objects/backend/page.rb