Thanks to visit codestin.com
Credit goes to github.com

Skip to content

param :class should automatically translate to param :className alias: :class #58

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

Closed
catmando opened this issue Nov 15, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@catmando
Copy link
Contributor

currently, you can say DIV(class: 'some-class') and under the hood this gets translated to DIV(className: 'some-class)

For symmetry, it should work the other way around. This can probably be easily done by translating param :class to param :className, alias: :class

@catmando catmando added the enhancement New feature or request label Nov 15, 2018
@catmando
Copy link
Contributor Author

in fact trying to create a param of name :class causes all sorts of problems as in the legacy system it tries to create a params.class method which kills the whole system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant