rango 0.1.1.2.6 → 0.1.1.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module Rango
6
6
  module ExplicitRendering
7
7
  include Rango::RenderMixin
8
8
  def render(template, locals = Hash.new)
9
- super(template, self.locals.merge!(locals))
9
+ super(template, self.context, self.locals.merge!(locals))
10
10
  end
11
11
 
12
12
  # class Posts < Rango::Controller
@@ -38,12 +38,13 @@ module Rango
38
38
  end
39
39
 
40
40
  module ImplicitRendering
41
+ include Rango::RenderMixin
41
42
  def context
42
43
  self
43
44
  end
44
45
 
45
- def render(template)
46
- super template
46
+ def render(template) # so you can't specify locals
47
+ super template, self.context
47
48
  end
48
49
  end
49
50
  end
data/lib/rango/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # NOTE: Do not edit this file manually, this
4
4
  # file is regenerated by task rake version:increase
5
5
  module Rango
6
- VERSION ||= "0.1.1.2.6"
6
+ VERSION ||= "0.1.1.2.7"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rango
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.2.6
4
+ version: 0.1.1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"