Sha256: 17a526d42485dac9aa34e3a6693738daa5df26575d168c2829d7d5247b5ae1d9
Contents?: true
Size: 466 Bytes
Versions: 2
Compression:
Stored size: 466 Bytes
Contents
module Madmin module ApplicationHelper include Pagy::Frontend # Converts a Rails version to a NPM version def npm_rails_version version = [ Rails::VERSION::MAJOR, Rails::VERSION::MINOR, Rails::VERSION::TINY ].join(".") version += "-#{Rails::VERSION::PRE}" if Rails::VERSION::PRE version end def clear_search_params resource.index_path(params.permit(:sort, :direction)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
madmin-1.2.7 | app/helpers/madmin/application_helper.rb |
madmin-1.2.6 | app/helpers/madmin/application_helper.rb |