Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
6e53aca9
Commit
6e53aca9
authored
Apr 26, 2008
by
Henrik N
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show 'Nothing to annotate!' instead of 'Annotated ' when there are no applicable models.
parent
935e9412
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
annotate_models.rb
lib/annotate_models.rb
+5
-1
No files found.
lib/annotate_models.rb
View file @
6e53aca9
...
@@ -143,7 +143,11 @@ module AnnotateModels
...
@@ -143,7 +143,11 @@ module AnnotateModels
puts
"Unable to annotate
#{
file
}
:
#{
e
.
message
}
"
puts
"Unable to annotate
#{
file
}
:
#{
e
.
message
}
"
end
end
end
end
puts
"Annotated
#{
annotated
.
join
(
', '
)
}
"
if
annotated
.
empty?
puts
"Nothing to annotate!"
else
puts
"Annotated
#{
annotated
.
join
(
', '
)
}
"
end
end
end
def
remove_annotations
def
remove_annotations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment