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.0.2 | config/initializers/raro_search.rb |
templus_models-1.0.1 | config/initializers/raro_search.rb |
templus_models-1.0.0 | config/initializers/raro_search.rb |