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
983d36f6
Commit
983d36f6
authored
Dec 17, 2016
by
Guillermo Guerrero Ibarra
Committed by
Cuong Tran
Dec 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some offenses 7. (#428)
parent
7a257965
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
113 deletions
+28
-113
.rubocop_todo.yml
.rubocop_todo.yml
+27
-105
annotate_models.rb
lib/annotate/annotate_models.rb
+0
-0
annotate_models_spec.rb
spec/annotate/annotate_models_spec.rb
+1
-8
No files found.
.rubocop_todo.yml
View file @
983d36f6
This diff is collapsed.
Click to expand it.
lib/annotate/annotate_models.rb
View file @
983d36f6
This diff is collapsed.
Click to expand it.
spec/annotate/annotate_models_spec.rb
View file @
983d36f6
...
...
@@ -567,14 +567,7 @@ EOS
describe
'#get_model_class'
do
require
'tmpdir'
module
::
ActiveRecord
class
Base
def
self
.
has_many
_name
end
end
end
# todo: use 'files' gem instead
# TODO: use 'files' gem instead
def
create
(
file
,
body
=
'hi'
)
file_path
=
File
.
join
(
AnnotateModels
.
model_dir
[
0
],
file
)
FileUtils
.
mkdir_p
(
File
.
dirname
(
file_path
))
...
...
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