A gem version with :hyphen_underscore_attrs option
matas-zanevicius opened this issue · 4 comments
Could you please release the gem version that includes the :hyphen_underscore_attrs
option?
I also found this to be an issue. The method recommended by the docs (Slim::Engine.set_options(hyphen_underscore_attrs: true)) yields an "Invalid option" error and does not set. Currently using a workaround of string keys in the data hash for multi-word keys
EDIT:
Specific error on server boot: Slim::Engine: Option :hyphen_underscore_attrs is invalid
I tried cloning the slim repo locally and pointing at it via the path argument in the Gemfile and the option worked as expected
The problem here is that the gem version in ruby gems does not include the commit that introduces :hyphen_underscore_attrs option
. My current workaround in the Gemfile is:
gem 'slim', '4.1.0', git: 'https://github.com/slim-template/slim', ref: '39cc3fb82b34092ec9e92b8057c5b60c426ffca5'
This way you don't have to clone the gem locally, just specify the latest commit in the gem repo and it works.
Still, it is a workaround.
Maintainers, could you please update the ruby gems version with recent commits?
Are there any movement on this?