Skip to content

Conversation

@cschiewek
Copy link

See: https://vmproduct.atlassian.net/browse/AUX-349

In Rails 6, the formats method in lookup_context.rb (See: https://github.com/rails/rails/blob/v6.0.3.4/actionview/lib/action_view/lookup_context.rb#L281-L298) expects formats to be symbols.

However, prototype-rails v 4.1.3 sets it to an instance of Mime::Type, causing the method to raise ArgumentError: Invalid formats. This fixes it by setting the default format to a symbol.

@cschiewek cschiewek merged commit 127d279 into master Jan 20, 2021
@cschiewek cschiewek deleted the ccs-rails-6-updates branch January 20, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants