File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ module AnnotateRoutes
26
26
27
27
class << self
28
28
def do_annotations ( options = { } )
29
- if routes_exists ?
29
+ if routes_file_exist ?
30
30
existing_text = File . read ( routes_file )
31
31
if rewrite_contents_with_header ( existing_text , header ( options ) , options )
32
32
puts "#{ routes_file } annotated."
@@ -37,7 +37,7 @@ def do_annotations(options = {})
37
37
end
38
38
39
39
def remove_annotations ( _options = { } )
40
- if routes_exists ?
40
+ if routes_file_exist ?
41
41
existing_text = File . read ( routes_file )
42
42
content , header_position = strip_annotations ( existing_text )
43
43
new_content = strip_on_removal ( content , header_position )
@@ -51,7 +51,7 @@ def remove_annotations(_options={})
51
51
52
52
private
53
53
54
- def routes_exists ?
54
+ def routes_file_exist ?
55
55
File . exist? ( routes_file )
56
56
end
57
57
You can’t perform that action at this time.
0 commit comments