Skip to content

Fix Cell::RailsExtensions::ViewModel#call with keyword args#73

Closed
taketo1113 wants to merge 1 commit intotrailblazer:masterfrom
taketo1113:fix-keywordargs
Closed

Fix Cell::RailsExtensions::ViewModel#call with keyword args#73
taketo1113 wants to merge 1 commit intotrailblazer:masterfrom
taketo1113:fix-keywordargs

Conversation

@taketo1113
Copy link
Copy Markdown
Contributor

…::RailsExtensions::ViewModel#call with keyword args
@apotonick
Copy link
Copy Markdown
Member

I think we need to introduce different implementations for Ruby < 2.7, I will send you a link how we usually do it if I can find it 😆

@taketo1113
Copy link
Copy Markdown
Contributor Author

@apotonick The CI error of Ruby < 2.7 is caused by cells gem <= 4.5.0 which does not include support Ruby <2.7 and after.
trailblazer/cells@88796e3

If cells gems release the new version, ci will pass tests.
(And I fixed another cache error which is caused by cells gem.)
trailblazer/cells#507

@AlfonsoUceda
Copy link
Copy Markdown
Collaborator

The right syntax cells supports is to use options as parameter and then access to it as a hash.

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.

Ruby 3.0 ActionView::Template::Error: wrong number of arguments error with keyword args

3 participants