deals_with 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deals_with/resource.rb +2 -1
- metadata +2 -2
data/lib/deals_with/resource.rb
CHANGED
@@ -37,7 +37,8 @@ module DealsWith
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def primary_for(controller)
|
40
|
-
controller_class.to_s.
|
40
|
+
controller_name = controller_class.to_s.gsub(/.+[:]{2}/, '')
|
41
|
+
controller_name == "#{model_name.gsub(/.+[:]{2}/, '').pluralize}_controller".classify
|
41
42
|
end
|
42
43
|
|
43
44
|
def base(controller)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deals_with
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-28 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|