Skip to content

Rails 6 Update #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 20, 2021
Merged

Rails 6 Update #1

merged 3 commits into from
Jan 20, 2021

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.

1 participant