Sha256: 347b1a5846230c05f40996e29c101461cc304cb206f0f81165971190b6ed9b99

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

module Sunrise
  module Utils
    module SearchWrapper
      extend ActiveSupport::Concern

      included do
        helper_method :search_wrapper
      end

      protected

      def search_wrapper
        @search_wrapper ||= Sunrise::Views::SearchWrapper.new(params[:search])
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sunrise-cms-1.1.1 lib/sunrise/utils/search_wrapper.rb
sunrise-cms-1.1.0 lib/sunrise/utils/search_wrapper.rb