matid-resource_controller 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml
CHANGED
|
@@ -34,7 +34,7 @@ module ResourceController
|
|
|
34
34
|
# Override this method if you'd like to use an alternate finder.
|
|
35
35
|
#
|
|
36
36
|
def finder
|
|
37
|
-
model.respond_to?(:find_by_permalink) ? :find_by_permalink : :
|
|
37
|
+
model.respond_to?(:find_by_permalink) ? :find_by_permalink : :find
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
# Used to fetch the current member object in all of the singular methods that operate on an existing member.
|
|
@@ -53,7 +53,7 @@ module ResourceController
|
|
|
53
53
|
|
|
54
54
|
# Like the finder method, but for a parent relationship
|
|
55
55
|
def parent_finder
|
|
56
|
-
parent_model.respond_to?(:find_by_permalink) ? :find_by_permalink : :
|
|
56
|
+
parent_model.respond_to?(:find_by_permalink) ? :find_by_permalink : :find
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
# Returns the current parent object if a parent object is present.
|