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 +4 -4
- data/lib/switchman/call_super.rb +2 -0
- data/lib/switchman/engine.rb +1 -1
- data/lib/switchman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1b648716eb4434b25dccc792ee10f94afb8b973
|
4
|
+
data.tar.gz: 7c7493d26eb99f76f3eb4d5178fad981d0475ba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8243ad517e01b10c998ebd6f8d49e28ac27a47a3bb40b131b3d34a990b4546157c8243b63fa479e83ed91fab6e4444dd27d191e6a8ac775fc2c6d332a188bf25
|
7
|
+
data.tar.gz: aadb9422b5c76b5fbd26a06b190a4b1550550f60258734f7df32a6fe93a1edec9e12398f88893e6543490584782a27442b438e14a308b4ed701daeb17619a76b
|
data/lib/switchman/call_super.rb
CHANGED
@@ -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
|
data/lib/switchman/engine.rb
CHANGED
@@ -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.
|
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
|
data/lib/switchman/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|