rubocop-schema 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/cop/style/migration_comments.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5730990e16a44d2b8586ad2dad8e1007a10922c3
|
4
|
+
data.tar.gz: e13792a133e86655e027cf68fa7a95db03b2eb65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f39d337f76d7335af5673e62d695785158735ed4b19685429266b034ead43ab0cb6f6d068c3fe2e194c0c440d2084b5925dd764b777ad7ae4cdaade4a8a45115
|
7
|
+
data.tar.gz: 053a4e40957dba537604943490c8bd270c797b2e9813d44c5cf7356bba4542ab356b4a45797843a21f17675f6cc75ce29f613b3d18dfe08e63a2340efd95a9a0
|
@@ -10,11 +10,11 @@ module RuboCop
|
|
10
10
|
COMMON_DB_FIELDS = %w(:deleted_at :id :creator_id :deleter_id :created_at :updated_at).freeze
|
11
11
|
|
12
12
|
def on_def(node)
|
13
|
-
|
14
|
-
if
|
15
|
-
process_block_child_node(
|
13
|
+
body = node.children[2]
|
14
|
+
if body.type == :send
|
15
|
+
process_block_child_node(body)
|
16
16
|
else
|
17
|
-
|
17
|
+
body.each_child_node do |ancestor|
|
18
18
|
process_block_child_node(ancestor)
|
19
19
|
end
|
20
20
|
end
|