You should already have @level, so I don't think you need to do this.

(there is a set_level method that should be called before all the actions that it makes sense for [see :before_action at the top of the class def])