Sha256: bc757800b6ee8f0f86dd4653ef8320df5146d923eda089f1e26d57d5193ecf9a
Contents?: true
Size: 277 Bytes
Versions: 3
Compression:
Stored size: 277 Bytes
Contents
# TODO Why is this required? require "pagy" module Helpers::Base include Pagy::Frontend include Pagy::Backend def has_order?(scope) # This scope has an order if the SQL changes when we remove any order clause. scope.to_sql != scope.reorder("").to_sql end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bullet_train-1.0.70 | app/helpers/concerns/helpers/base.rb |
bullet_train-1.0.69 | app/helpers/concerns/helpers/base.rb |
bullet_train-1.0.68 | app/helpers/concerns/helpers/base.rb |