This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
https://github.com/brianreavis/selectize.js/issues/470 | |
Selectize doesn't display anything to let the user know there are no results. | |
This is a temporary patch to display a no results option when there are no | |
options to select for the user. | |
*/ | |
Selectize.define( 'no_results', function( options ) { | |
var self = this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'action_dispatch/http/mime_negotiation' | |
module ActionDispatch | |
module Http | |
module MimeNegotiation | |
def formats | |
@env["action_dispatch.request.formats"] ||= | |
if parameters[:format] | |
Array(Mime[parameters[:format]]) | |
elsif use_accept_header && valid_accept_header | |
accepts |