Skip to content

Commit 77e5b7b

Browse files
committed
Rename AnnotateRoutes.routes_exists? to .routes_file_exist?
1 parent d3e3b13 commit 77e5b7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/annotate/annotate_routes.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module AnnotateRoutes
2626

2727
class << self
2828
def do_annotations(options = {})
29-
if routes_exists?
29+
if routes_file_exist?
3030
existing_text = File.read(routes_file)
3131
if rewrite_contents_with_header(existing_text, header(options), options)
3232
puts "#{routes_file} annotated."
@@ -37,7 +37,7 @@ def do_annotations(options = {})
3737
end
3838

3939
def remove_annotations(_options={})
40-
if routes_exists?
40+
if routes_file_exist?
4141
existing_text = File.read(routes_file)
4242
content, header_position = strip_annotations(existing_text)
4343
new_content = strip_on_removal(content, header_position)
@@ -51,7 +51,7 @@ def remove_annotations(_options={})
5151

5252
private
5353

54-
def routes_exists?
54+
def routes_file_exist?
5555
File.exist?(routes_file)
5656
end
5757

0 commit comments

Comments
 (0)