Sha256: 72a28ac08f43bcf0c0ef4c79157427736435af380ae272ba2fbb09e95f251c22

Contents?: true

Size: 583 Bytes

Versions: 43

Compression:

Stored size: 583 Bytes

Contents

Ransack.configure do |config|
  config.add_predicate 'in_string',
    arel_predicate: 'in',
    formatter: proc { |v| v.split(",") },
    validator: proc { |v| v.present? },
    compounds: true,
    type: :string
end

module Kaminari
  module ActionViewExtension
    def paginate(scope, options = {}, &block)
      paginator = Kaminari::Helpers::Paginator.new self, options.reverse_merge(:current_page => scope.current_page, :total_pages => scope.total_pages, :per_page => scope.limit_value, :total_count => scope.total_count, :remote => false)
      paginator.to_s
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
templus_models-1.5.12 config/initializers/raro_search.rb
templus_models-1.5.11 config/initializers/raro_search.rb
templus_models-1.5.10 config/initializers/raro_search.rb
templus_models-1.5.9 config/initializers/raro_search.rb
templus_models-1.5.8 config/initializers/raro_search.rb
templus_models-1.5.7 config/initializers/raro_search.rb
templus_models-1.5.6 config/initializers/raro_search.rb
templus_models-1.5.5 config/initializers/raro_search.rb
templus_models-1.5.4 config/initializers/raro_search.rb
templus_models-1.5.3 config/initializers/raro_search.rb
templus_models-1.5.2 config/initializers/raro_search.rb
templus_models-1.5.1 config/initializers/raro_search.rb
templus_models-1.5.0 config/initializers/raro_search.rb
templus_models-1.4.4 config/initializers/raro_search.rb
templus_models-1.4.3 config/initializers/raro_search.rb
templus_models-1.4.2 config/initializers/raro_search.rb
templus_models-1.4.1 config/initializers/raro_search.rb
templus_models-1.4.0 config/initializers/raro_search.rb
templus_models-1.3.9 config/initializers/raro_search.rb
templus_models-1.3.8 config/initializers/raro_search.rb