Sha256: 95c1c0f8b4e60790e9524ea3083c65d6585d45a71e7e8be87382052040f1267b

Contents?: true

Size: 516 Bytes

Versions: 20

Compression:

Stored size: 516 Bytes

Contents

if Rails::VERSION::MAJOR >= 5

  module Ransack
    module Helpers
      module FormHelper

        class SortLink

          def url_options_with_feature
            result = url_options_without_feature
            if result.respond_to?(:permit!)
              result.permit!
            else
              result
            end
          end

          alias_method :url_options_without_feature, :url_options
          alias_method :url_options, :url_options_with_feature
        end

      end
    end
  end

end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rails_db-2.2.1 lib/ext/ransack_ext.rb
rails_db-2.2.0 lib/ext/ransack_ext.rb
rails_db-2.1.1 lib/ext/ransack_ext.rb
rails_db-2.1.0 lib/ext/ransack_ext.rb
rails_db-2.0.6 lib/ext/ransack_ext.rb
rails_db-2.0.5 lib/ext/ransack_ext.rb
rails_db-2.0.4 lib/ext/ransack_ext.rb
xplore-0.0.1.alpha lib/ext/ransack_ext.rb
rails_db-2.0.3 lib/ext/ransack_ext.rb
rails_db-2.0.2 lib/ext/ransack_ext.rb
rails_db-2.0.1 lib/ext/ransack_ext.rb
rails_db-2.0.0 lib/ext/ransack_ext.rb
rails_db-1.6.0 lib/ext/ransack_ext.rb
rails_db-1.5.0 lib/ext/ransack_ext.rb
rails_db-1.4.1 lib/ext/ransack_ext.rb
rails_db-1.4.0 lib/ext/ransack_ext.rb
rails_db-1.3.4 lib/ext/ransack_ext.rb
rails_db-1.3.3 lib/ext/ransack_ext.rb
rails_db-1.3.2 lib/ext/ransack_ext.rb
rails_db-1.3.1 lib/ext/ransack_ext.rb