We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
When using a partial that includes paramaters in a comment, the initialize method is not generated with those paramaters.
initialize
i.e.
<%# locals: (question:, answer: nil, open: false) %>
Describe the solution you'd like
Produce an initializer, and include any defaults.
attr_reader :question, :answer, :open def initialize(question:, answer: nil, open: false) @question = question @answer = answer @open = open end
The text was updated successfully, but these errors were encountered:
Thanks for reporting this one, @rachelgraves!
This is a good one and I guess it makes sense to support that when you are migrating single partials as independent Phlex components.
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
When using a partial that includes paramaters in a comment, the
initialize
method is not generated with those paramaters.i.e.
Describe the solution you'd like
Produce an initializer, and include any defaults.
The text was updated successfully, but these errors were encountered: