Skip to content

Commit d18388b

Browse files
Add 'top' and 'bottom' as synonyms for 'before' and 'after' routes positions
1 parent d24f897 commit d18388b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/annotate/annotate_routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module AnnotateRoutes
2323
def self.do_annotations(options={})
2424
return unless(routes_exists?)
2525

26-
position_after = options[:position_in_routes] != 'before'
26+
position_after = ! %w(before top).include?(options[:position_in_routes])
2727

2828
routes_map = `rake routes`.split(/\n/, -1)
2929

0 commit comments

Comments
 (0)