e9_rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,15 +4,13 @@ module E9Rails::Helpers
4
4
 
5
5
  included do
6
6
  helper HelperMethods
7
-
8
- unless self._helper_methods.member?(:parent)
9
- def parent; end
10
- protected :parent
11
- helper_method :parent
12
- end
13
7
  end
14
8
 
15
9
  module HelperMethods
10
+ def parent
11
+ controller.parent rescue nil
12
+ end
13
+
16
14
  def link_to_resource(resource, options = {})
17
15
  options.symbolize_keys!
18
16
 
@@ -1,3 +1,3 @@
1
1
  module E9Rails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: e9_rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Travis Cox
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-03 00:00:00 -04:00
13
+ date: 2011-08-25 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency