Sha256: 62c6203ad24ce59d896f16a545e0fa3d0a34761634fce42052abdda3e94a6d16

Contents?: true

Size: 570 Bytes

Versions: 7

Compression:

Stored size: 570 Bytes

Contents

module Blacklight
  module Rendering
    class HelperMethod < AbstractStep
      def render
        return next_step(values) unless config.helper_method
        return render_helper # short circut the rest of the steps
      end

      private

        def render_helper
          context.send(config.helper_method,
                       options.merge(document: document,
                                     field: config.field,
                                     config: config,
                                     value: values))
        end
    end
  end
end



Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-6.5.0 app/presenters/blacklight/rendering/helper_method.rb
blacklight-6.4.2 app/presenters/blacklight/rendering/helper_method.rb
blacklight-6.4.1 app/presenters/blacklight/rendering/helper_method.rb
blacklight-6.4.0 app/presenters/blacklight/rendering/helper_method.rb
blacklight-6.3.3 app/presenters/blacklight/rendering/helper_method.rb
blacklight-6.3.1 app/presenters/blacklight/rendering/helper_method.rb
blacklight-6.3.0 app/presenters/blacklight/rendering/helper_method.rb