rango 0.1.1.2.6 → 0.1.1.2.7
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/lib/rango/mixins/rendering.rb +4 -3
- data/lib/rango/version.rb +1 -1
- metadata +1 -1
@@ -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