Sha256: 994c188861fd2bc172e6bb1f5900fab8667d4b64a05515af3a93dfb0d2b853aa

Contents?: true

Size: 578 Bytes

Versions: 46

Compression:

Stored size: 578 Bytes

Contents

module ActionView
  module Helpers
    module Tags # :nodoc:
      class SearchField < TextField # :nodoc:
        def render
          super do |options|
            if options["autosave"]
              if options["autosave"] == true
                options["autosave"] = request.host.split(".").reverse.join(".")
              end
              options["results"] ||= 10
            end

            if options["onsearch"]
              options["incremental"] = true unless options.has_key?("incremental")
            end
          end
        end
      end
    end
  end
end

Version data entries

46 entries across 45 versions & 9 rubygems

Version Path
actionview-4.2.11.3 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.11.2 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.11.1 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.11 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.10 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.10.rc1 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.9 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.9.rc2 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.9.rc1 lib/action_view/helpers/tags/search_field.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionview-4.2.8/lib/action_view/helpers/tags/search_field.rb
actionview-4.2.8 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.8.rc1 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.7.1 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.7 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.7.rc1 lib/action_view/helpers/tags/search_field.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionview-4.2.6/lib/action_view/helpers/tags/search_field.rb
actionview-4.2.6 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.6.rc1 lib/action_view/helpers/tags/search_field.rb
actionview-4.2.5.2 lib/action_view/helpers/tags/search_field.rb
activejob-lock-0.0.2 rails/actionview/lib/action_view/helpers/tags/search_field.rb