Sha256: 33aa5949f635cf598bddbb6bf512adebcb8094b64c7ea10facf468b7e26b7cb9
Contents?: true
Size: 603 Bytes
Versions: 14
Compression:
Stored size: 603 Bytes
Contents
module GeoConcerns module GeoblacklightControllerBehavior extend ActiveSupport::Concern included do def geoblacklight respond_to do |f| f.json do if builder.to_hash.fetch(:error, nil) render json: builder, status: 404 else render json: builder end end end end end private def document_class Discovery::GeoblacklightDocument end def builder @builder ||= Discovery::DocumentBuilder.new(presenter, document_class.new) end end end
Version data entries
14 entries across 14 versions & 1 rubygems