conjoin 0.0.43 → 0.0.44

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
  SHA1:
3
- metadata.gz: 9092ecaac5ebcd75dd307a052740115c9f6071b5
4
- data.tar.gz: 758e1c54cb17dbe31f90004982048b38de3b6853
3
+ metadata.gz: 82f2329fc232dd3b07c0e7fdb0fee34c3913d5d0
4
+ data.tar.gz: 882039aa582719f307dbfdb70e80e491e5bb64dd
5
5
  SHA512:
6
- metadata.gz: 08a40c6b3288a964a6c15f15bf5bae504fb577f9a7fa96fc00d406e156abd700b4c3654e5a1d578f8846fc516d79c3849090b650bda99c8f6199036e882f4641
7
- data.tar.gz: 53056de6bd092194d0c49f8b2e9327c95fdfd1bcc4da46552364c2bc0b128ad69d1b0485b8e5887b4b79d8eb9ebda982b5a1ead72e24635feec5231b2d709085
6
+ metadata.gz: 8dfdc892c1bdf7a2e96cca8bceca2aad0a202a979a870cbb8b2e6a84408d486580cd66017c3620be67cec0fc3a616d42bb13053e5f6be2078a0096783466dc91
7
+ data.tar.gz: 6f4a18edaa8863e963050505f4fbf64c8f3c1f9b5b59865495bb5a3d80ac7f79766e3cb30480f469bf6be887e9abd279dfa66225523c6f4f0f47f4b893d3dd89
@@ -330,7 +330,7 @@ module ActiveRecord
330
330
  #############################################
331
331
  #############################################
332
332
  #############################################
333
- value = owner.class.base_class.name.gsub(/\w+::/, '')
333
+ value = owner.class.base_class.name.gsub(/\w+::{1}(\w+::\w+)/, '\1')
334
334
  #############################################
335
335
  bind_val = bind scope, table.table_name, reflection.type.to_s, value
336
336
  scope = scope.where(table[reflection.type].eq(bind_val))
@@ -1,3 +1,3 @@
1
1
  module Conjoin
2
- VERSION = "0.0.43"
2
+ VERSION = "0.0.44"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.43
4
+ version: 0.0.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-09 00:00:00.000000000 Z
11
+ date: 2014-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuba