resource_awareness 0.0.9 → 0.1.0

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.
Files changed (2) hide show
  1. data/lib/rails/resource.rb +4 -0
  2. metadata +2 -2
@@ -20,6 +20,10 @@ module Rails
20
20
  path_prefix ? "#{path_prefix}/#{name}" : "/#{name}"
21
21
  end
22
22
 
23
+ def controller
24
+ @controller ||= (controller_path + '_controller').classify.constantize
25
+ end
26
+
23
27
  def singleton?
24
28
  false
25
29
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 9
9
- version: 0.0.9
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ingo Weiss