ruhl 0.12.1 → 0.13.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.1
1
+ 0.13.0
@@ -15,6 +15,14 @@ end
15
15
 
16
16
  module ActionController
17
17
  class Base
18
+
19
+ protected
20
+
21
+ def present(object_sym, action_sym)
22
+ render :template => "#{object_sym.to_s.pluralize}/#{action_sym}",
23
+ :locals => {:object => presenter_for( instance_variable_get("@#{object_sym}") )}
24
+ end
25
+
18
26
  def presenter_for(obj)
19
27
  eval("#{obj.class.name}Presenter").new(obj, @template)
20
28
  end
data/ruhl.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruhl}
8
- s.version = "0.12.1"
8
+ s.version = "0.13.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Stone"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruhl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone