switchman 1.9.10 → 1.9.11

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: 0c35d2245d3da6dcc3684f329bec545e30a722fc
4
- data.tar.gz: 0cdf83ae2ff27aa3d2591d99996cce15fd42ef12
3
+ metadata.gz: c1b648716eb4434b25dccc792ee10f94afb8b973
4
+ data.tar.gz: 7c7493d26eb99f76f3eb4d5178fad981d0475ba2
5
5
  SHA512:
6
- metadata.gz: 73897cada38b50274a7c8ba0ee54b52f9fd43e77472ff6ade73dbd7a122c6ffadc06787546cff8b4905549aab08e3c0ccf9607c6c48bc6fd55eb07427874f6c5
7
- data.tar.gz: cbea8fa73620127f37b97c115c6e25e27856766be69e45659147ebdf4e9fedccb75fd366a4322777a02d90698f9a2445e4139597469ca3de98c419f875abac37
6
+ metadata.gz: 8243ad517e01b10c998ebd6f8d49e28ac27a47a3bb40b131b3d34a990b4546157c8243b63fa479e83ed91fab6e4444dd27d191e6a8ac775fc2c6d332a188bf25
7
+ data.tar.gz: aadb9422b5c76b5fbd26a06b190a4b1550550f60258734f7df32a6fe93a1edec9e12398f88893e6543490584782a27442b438e14a308b4ed701daeb17619a76b
@@ -2,8 +2,10 @@ module Switchman
2
2
  module CallSuper
3
3
  def super_method_above(method_name, above_module)
4
4
  method = method(method_name)
5
+ last_owner = method.owner
5
6
  while method.owner != above_module
6
7
  method = method.super_method
8
+ raise "Could not find super method ``#{method_name}' for #{self.class}" if method.owner == last_owner
7
9
  end
8
10
  method.super_method
9
11
  end
@@ -111,7 +111,7 @@ module Switchman
111
111
 
112
112
  ::ActiveRecord::Associations::Association.prepend(ActiveRecord::Association)
113
113
  ::ActiveRecord::Associations::BelongsToAssociation.prepend(ActiveRecord::BelongsToAssociation)
114
- ::ActiveRecord::Associations::CollectionProxy.prepend(ActiveRecord::CollectionProxy)
114
+ ::ActiveRecord::Associations::CollectionProxy.include(ActiveRecord::CollectionProxy)
115
115
  if ::Rails.version < '5'
116
116
  ::ActiveRecord::Associations::Builder::CollectionAssociation.include(ActiveRecord::Builder::CollectionAssociation)
117
117
  end
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.9.10"
2
+ VERSION = "1.9.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.10
4
+ version: 1.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-06-12 00:00:00.000000000 Z
13
+ date: 2017-06-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties