rubocop-rails-order_model_macros 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9910318653f0f4e74ea09b0c8ff74af711c57ec8
4
- data.tar.gz: 67052e409250b6bb5ef0562ec0cfbe1978f5bb93
3
+ metadata.gz: ed903f2fbfeb0a0d31b12fd9065546096cbb7457
4
+ data.tar.gz: 34add53f42543f33693587d283d72b820ac26d4e
5
5
  SHA512:
6
- metadata.gz: fac171e9a0b679a4d2b89ed91c906c94022ede67bfa3e03ec18d91efcea02d8907476383f8f6dd302cb741a1eb9666532be01f29ff63635611d18117979488b1
7
- data.tar.gz: 2243b42702576db4dd8e4523218a4fff0c1abb485b6557cd3431cd6922b9c579958243549ac917b28e1329ef04a6073af7bab85b727027fb68d128b1f7c2bed6
6
+ metadata.gz: e1aa12a8c00effdfe02be99b18b1e44e9cd358e87f03d4532c9283becbb3fbdec5ba5d4d7a1cacac2b69266470cc695440b5c6d7386d08a41e580eadfcc3176a
7
+ data.tar.gz: f10619faf332a82c35b004dd9a3d1e4f91937fa5ae4fbc782ee1597eb64d0b7ded8993b7d3d2285cfe6c893727a3f1a6f895fb87540f34276b618a774d8bace7
@@ -25,6 +25,7 @@ module RuboCop
25
25
 
26
26
  return unless body
27
27
  return unless body.begin_type?
28
+ return unless superclass && superclass.descendants.any?
28
29
  return unless %w(ActiveRecord ApplicationRecord).include?(superclass.descendants.first.const_name)
29
30
 
30
31
  targets = target_methods(body)
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Rails
5
5
  module OrderModelMacros
6
6
  module Version
7
- STRING = "0.1.1".freeze
7
+ STRING = "0.1.2".freeze
8
8
 
9
9
  def self.gem_version
10
10
  Gem::Version.new(STRING)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rails-order_model_macros
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caroline Artz