baseapi 0.1.23 → 0.1.24

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: 4d6d1eaa16cd3a511f8b38caba27defcfe20c4f0
4
- data.tar.gz: af7d9a976a0247faf15987fde6ac17429e32c933
3
+ metadata.gz: 9a559935b8e1eb2c1ac7418e084c0bb9d4a6185b
4
+ data.tar.gz: 8a4b2598c2a23c09e1a79ebcbad0a2b2c6923d0a
5
5
  SHA512:
6
- metadata.gz: dd4cc0e0e3b4b4b166c1e4064b6e8785628480370d4db1733b213f33f6e8b93b8d04cd8568f767d563730c55b0b03df457c8d90a0dc52f42c8fa1dfd92df53f7
7
- data.tar.gz: aef9d9ec7f2870b64b6e711257356c82730cb6e8f0cea36dcd37f280ef06daac9c1fbed611c427944b91d580357c0671c72121bbfecf791786a8f0e954e60ed7
6
+ metadata.gz: bca05467579b8dd593c7161ac69558fe8e222275c107aa6c65ddcfb485ce712449732bf8c41a719cebb38ec85e34f02a66b4f5eab0557fffe09507d6063eb9e5
7
+ data.tar.gz: 752a6a65f0cabc07bb31d3309b97ecae395818d8b065865ca6251680169e39853af3eb480f6f4a3538da9df295db7fadf9628cdb89cecec077aeb0738f4e4c30
@@ -81,9 +81,11 @@ module ActiveRecordRelationExtension
81
81
  column_name = joins_tables.pop
82
82
  table_name = joins_tables.count > 0 ? joins_tables.last.pluralize.underscore : self.model.to_s.pluralize.underscore
83
83
  # joins_tables exists check
84
+ is_next = false
84
85
  joins_tables.each do |table|
85
- next if !ActiveRecord::Base.connection.tables.include?(table.pluralize.underscore)
86
+ is_next = true and break if !ActiveRecord::Base.connection.tables.include?(table.pluralize.underscore)
86
87
  end
88
+ next if is_next
87
89
  # table exists check
88
90
  next if !ActiveRecord::Base.connection.tables.include?(table_name)
89
91
  # column_name exists check
@@ -1,3 +1,3 @@
1
1
  module Baseapi
2
- VERSION = "0.1.23"
2
+ VERSION = "0.1.24"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baseapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moriyuki Arakawa