counter_culture 1.6.1 → 1.6.2

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: b2cbcbac5a73c66f70195da9047859c849d67166
4
- data.tar.gz: 712abce425aae48e7b8decf15edaee9c921cf95c
3
+ metadata.gz: c32ed47b22301d4d8c78b84070e31848f83f9400
4
+ data.tar.gz: e65f3e880c94317dd98ad5ec7f4f47d06af13653
5
5
  SHA512:
6
- metadata.gz: c6fac4dfb787d6f232daa3d3387415b11504b965503a33d685bb6eb2730a6301a13d5c7e15e83f8f508d76c26be0d98da0c832e161dd4904159ac6d59a4d622a
7
- data.tar.gz: 787de2041877eb28f2ef2027689c38c00fffdf8caa924cbe0538cdf159b774fdedfa5030a257ce2a9606e586aff9e9d350f81b8a07b7d750c3f448ca831405dd
6
+ metadata.gz: d6af1fba641af3a199d2e0f9f1a5cfe53e387c585a71dda8395b97f71ff4beccc45c89542dcae6ac9d54c26b1bfa723421c6dd5af1cd25f3a477285862aea908
7
+ data.tar.gz: 7d73f3bcd4a5671a4c92d69d4155483b44495d2451cb2bf1299f560a3ff03dab824c3c87b375c4ab82953e0a135614feeb78d144eb669a775576190f668f0443
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.6.2 (April 26, 2017)
2
+
3
+ Bugfixes;
4
+ - Restore compatibility with older Rails versions
5
+
1
6
  ## 1.6.1 (April 26, 2017)
2
7
 
3
8
  Bugfixes:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.1
1
+ 1.6.2
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: counter_culture 1.6.1 ruby lib
5
+ # stub: counter_culture 1.6.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "counter_culture".freeze
9
- s.version = "1.6.1"
9
+ s.version = "1.6.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
@@ -183,7 +183,7 @@ module CounterCulture
183
183
 
184
184
  source_table_key = association_primary_key
185
185
  target_table_key = reflect.foreign_key
186
- if reflect.has_one?
186
+ if !reflect.belongs_to?
187
187
  # a has_one relation flips the location of the keys on the tables
188
188
  # around
189
189
  (source_table_key, target_table_key) =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: counter_culture
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus von Koeller