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
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 7
4
- :patch: 0
4
+ :patch: 1
5
5
  :build:
@@ -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 : :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 : :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.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mateusz Drozdzynski