momocop 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03e06c385a3b8b502f7fff3ec4f7770e330e9abfaeec326c7a1b30f52aa4b694
4
- data.tar.gz: 1bd4131b3dac0997bff3c594f97490e806fbe441fc327e36be2581815bb47358
3
+ metadata.gz: acef3c7f38f87034b619c4b5e9ca7ca77ac880a0a665f46abff3a19455ef2d5f
4
+ data.tar.gz: 4e06a90596825134bdad568b41b38ebdb93056d0fab4f58d381c8ffd6d16e6e5
5
5
  SHA512:
6
- metadata.gz: 4f88c00415baea87b4a529b2dc96653a8d3753edd989e378251a6bcc17807e20ed95630392d5c788e56fdcb88fbb696f65d571155753b5c1ac642f390beb9d87
7
- data.tar.gz: bbf69bb7e5062676c19cf88d8dfcb04d821edc6abd6930b88cd52c12a0c7b6c999c307748df0f2b688f2a47b421c2d5b157791db9302f74741a859d6c78d7d08
6
+ metadata.gz: 7c18582cdb50926ee4bbc7074c076d90f06504cdec64d0dc4a1389dadac1ad000864cdcea4e9e4322a7fcc2bc6bbb8aadd381a29cef2e4bdee1dee3f751833a9
7
+ data.tar.gz: 6ca756d9793ca03ef4ca8ea88e37d9169bea071641464af88f36e96688a613fa5dc09c3e50b252c56e79e1cf9376f46db1717e0b4dfa7d46be8352fbb656582a
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Momocop
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.12'
5
5
  end
@@ -139,13 +139,7 @@ module RuboCop
139
139
  .select { _1[:type] == :belongs_to }
140
140
  .map { |association|
141
141
  options = association[:options]
142
- if options[:foreign_key]
143
- options[:foreign_key]
144
- elsif options[:class_name]
145
- foreign_key_name(options[:class_name])
146
- else
147
- "#{association[:name]}_id"
148
- end
142
+ options[:foreign_key] || "#{association[:name]}_id"
149
143
  }
150
144
  .compact
151
145
  return foreign_key_names.map(&:to_sym)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: momocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - supermomonga
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-21 00:00:00.000000000 Z
11
+ date: 2024-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport