Method: RearSetup#menu_position

Defined in:
lib/rear/setup/menu.rb

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 menu_position position = nil
  @__rear__menu_position = position.to_i if position
  @__rear__menu_position || 0
end