Commit d18388b3 by Kamil Bielawski

Add 'top' and 'bottom' as synonyms for 'before' and 'after' routes positions

parent d24f8971
...@@ -23,7 +23,7 @@ module AnnotateRoutes ...@@ -23,7 +23,7 @@ module AnnotateRoutes
def self.do_annotations(options={}) def self.do_annotations(options={})
return unless(routes_exists?) return unless(routes_exists?)
position_after = options[:position_in_routes] != 'before' position_after = ! %w(before top).include?(options[:position_in_routes])
routes_map = `rake routes`.split(/\n/, -1) routes_map = `rake routes`.split(/\n/, -1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment