way 1.0.0 → 1.1.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.
Files changed (2) hide show
  1. data/lib/way.rb +12 -2
  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
- content << "#{@template.inspect}"
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
- partial_content << "app/views/#{partial_template.to_s}"
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$/, '')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: way
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: