Sha256: 58758078d2fa28963b438b9f5e7bc59b0d6d495fb2929cf80d5dc034d2779cff

Contents?: true

Size: 550 Bytes

Versions: 5

Compression:

Stored size: 550 Bytes

Contents

require 'smart_listing'
require 'kaminari'

module SmarterListing
  module Loader
    def initialize

    end

    def self.extended base
      def smarter_listing(filter_parameter = :filter)
        helper SmartListing::Helper
        include SmartListing::Helper::ControllerExtensions

        helper SmarterListing::Helper
        include SmarterListing::ControllerExtension

        instance_variable_set :@filter_parameter, filter_parameter
        prepend Loader
      end
    end
  end
end

ActionController::Base.extend SmarterListing::Loader

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
smarter_listing-0.1.4 lib/smarter_listing/loader.rb
smarter_listing-0.1.3 lib/smarter_listing/loader.rb
smarter_listing-0.1.2 lib/smarter_listing/loader.rb
smarter_listing-0.1.1 lib/smarter_listing/loader.rb
smarter_listing-0.1.0 lib/smarter_listing/loader.rb