csmosx-resource_controller 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml
CHANGED
@@ -7,7 +7,7 @@ module ResourceController
|
|
7
7
|
# Returns the relevant association proxy of the parent. (i.e. /posts/1/comments # => @post.comments)
|
8
8
|
#
|
9
9
|
def parent_association
|
10
|
-
@parent_association ||= parent_object.send(model_name.to_s.
|
10
|
+
@parent_association ||= parent_object.send(model_name.to_s.tableize.to_sym)
|
11
11
|
end
|
12
12
|
|
13
13
|
# Returns the type of the current parent
|
@@ -48,7 +48,7 @@ module ResourceController
|
|
48
48
|
# Like the model method, but for a parent relationship.
|
49
49
|
#
|
50
50
|
def parent_model
|
51
|
-
parent_type.to_s.classify.constantize
|
51
|
+
parent_type.to_s.tableize.classify.constantize
|
52
52
|
end
|
53
53
|
|
54
54
|
# Returns the current parent object if a parent object is present.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csmosx-resource_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Golick
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-25 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|