Method: Textbringer::Utils.set_transient_map
- Defined in:
- lib/textbringer/utils.rb
.set_transient_map(map) ⇒ Object
401 402 403 404 405 406 407 408 409 |
# File 'lib/textbringer/utils.rb', line 401 def set_transient_map(map) old_overriding_map = Controller.current.overriding_map hook = -> { Controller.current.overriding_map = old_overriding_map remove_hook(:pre_command_hook, hook) } add_hook(:pre_command_hook, hook) Controller.current.overriding_map = map end |