Method: RearSetup#menu_position
- Defined in:
- lib/rear/setup/menu.rb
#menu_position(position = nil) ⇒ Object Also known as: position
by default controllers will be shown in the menu in the order they was defined. to have a controller shown before other ones set its menu_position to a higher number.
16 17 18 19 |
# File 'lib/rear/setup/menu.rb', line 16 def position = nil @__rear__menu_position = position.to_i if position @__rear__menu_position || 0 end |