summaryrefslogtreecommitdiff
path: root/rubocop/model_helpers.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-09-19 17:25:42 +0200
committerRémy Coutable <remy@rymai.me>2017-12-20 11:05:16 +0100
commit803f57b4d90ee497ccfbb1f3936b5c048e63c7d8 (patch)
treea1f3e7b3acb9cbd3df84aeab19d4ecea72600ef2 /rubocop/model_helpers.rb
parentfebb0b9a8014f5b480ff7baab1d189fce49210a5 (diff)
downloadgitlab-ce-rc/use-gitlab-styles.tar.gz
Use gitlab-stylesrc/use-gitlab-styles
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'rubocop/model_helpers.rb')
-rw-r--r--rubocop/model_helpers.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/rubocop/model_helpers.rb b/rubocop/model_helpers.rb
deleted file mode 100644
index 309723dc34c..00000000000
--- a/rubocop/model_helpers.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-module RuboCop
- module ModelHelpers
- # Returns true if the given node originated from the models directory.
- def in_model?(node)
- path = node.location.expression.source_buffer.name
- models_path = File.join(Dir.pwd, 'app', 'models')
-
- path.start_with?(models_path)
- end
- end
-end