inherited_resources_helpers 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,14 @@ module InheritedResources
5
5
  base.send(:helper_method, public_instance_methods(false))
6
6
  end
7
7
 
8
+ def instance_name
9
+ resource.type.underscore.singularize
10
+ end
11
+
12
+ def collection_name
13
+ resource.type.underscore.pluralize
14
+ end
15
+
8
16
  def resource
9
17
  member_action? ? super : build_resource
10
18
  end
@@ -1,3 +1,3 @@
1
1
  module InheritedResourcesHelpers
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inherited_resources_helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sven Fuchs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-11 00:00:00 +02:00
18
+ date: 2010-09-12 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21