codeplant/simple-navigation

Allow users to opt-out of deprecation warning for consider_item_names_as_safe

drernie opened this issue · 3 comments

The new version of https://github.com/codeplant/simple-navigation/blob/master/lib/simple_navigation/configuration.rb issues a deprecation warning about the changes to "consider_item_names_as_safe", which is great.

However, I can't see any way to avoid that warning (and I don't want any warnings in production code!). I'd like to be able to do something such as explicitly set "consider_item_names_as_safe=false", which would then disable the warning.

andi commented

The only way to avoid the deprec message is to either move back to 3.11.0 (without functional consequences) or to wait for the release of 3.13.0, which will remove the deprec warning.

Thanks, I wasn't sure whether I could rollback w/o functional consequences!

andi commented

3.13.0 is out now.... consider_item_names_as_safe is now false by default. Deprecation warning has been removed...