app/helpers/browse_everything_helper.rb in browse-everything-0.15.1 vs app/helpers/browse_everything_helper.rb in browse-everything-0.16.0
- old
+ new
@@ -1,13 +1,7 @@
-module BrowseEverythingHelper
- def array_to_hidden_fields(array, key)
- fields = array.to_query(key).split(Rack::Utils::DEFAULT_SEP).collect do |pair|
- key, value = pair.split('=', 2).map { |str| Rack::Utils.unescape(str) }
- hidden_field_tag(key, value)
- end
- fields.join("\n").html_safe
- end
+# frozen_string_literal: true
+module BrowseEverythingHelper
# Extracted from Rack::Mime 1.5.2 for use with earlier versions of Rack/Rails
# @param [String] value
# @param [String] matcher
# @return [TrueClass,FalseClass]
def mime_match?(value, matcher)