weppos/tabs_on_rails

Not compatible with frozen strings

morgoth opened this issue · 1 comments

Hi @weppos

I would like to setup my app to have frozen strings by default.
Example description: https://www.mikeperham.com/2018/02/28/ruby-optimization-with-one-magic-comment/

Using tabs_on_rails is not possible with globally enabled frozen string. This can be seen by setting RUBYOPT="--enable=frozen-string-literal" and running Rails app.

When rendering tabs, the error is thrown: ActionView::Template::Error (can't modify frozen String: "")

Looks like it is caused by our code.
I'm sorry for false report