way 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/way.rb +12 -2
- metadata +1 -1
data/lib/way.rb
CHANGED
@@ -17,7 +17,12 @@ module ActionView
|
|
17
17
|
end
|
18
18
|
|
19
19
|
content = layout.render(view, locals){ content } if layout
|
20
|
-
|
20
|
+
|
21
|
+
if @view.controller.params.has_key? '_way'
|
22
|
+
content << "#{@template.inspect}"
|
23
|
+
end
|
24
|
+
|
25
|
+
content
|
21
26
|
end
|
22
27
|
end
|
23
28
|
end
|
@@ -33,7 +38,12 @@ module ActionView
|
|
33
38
|
else
|
34
39
|
partial_template = _pick_partial_template(partial_path)
|
35
40
|
partial_content = partial_template.render_partial(self, options[:object], local_assigns)
|
36
|
-
|
41
|
+
|
42
|
+
if self.controller.params.has_key? '_way'
|
43
|
+
partial_content << "app/views/#{partial_template.to_s}"
|
44
|
+
end
|
45
|
+
|
46
|
+
partial_content
|
37
47
|
end
|
38
48
|
when ActionView::Helpers::FormBuilder
|
39
49
|
builder_partial_path = partial_path.class.to_s.demodulize.underscore.sub(/_builder$/, '')
|