nisetegami 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,8 @@ module Nisetegami
24
24
  options = args.first
25
25
  if !options[:layout] && @_ar_template
26
26
  format = options[:template].identifier.split('.').last
27
- options[:layout] = @_ar_template.send("layout_#{format}")
27
+ layout = @_ar_template.send("layout_#{format}")
28
+ options[:layout] = layout unless layout.blank?
28
29
  end
29
30
  render_without_layout(*args, &block)
30
31
  end
@@ -1,3 +1,3 @@
1
1
  module Nisetegami
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nisetegami
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-11 00:00:00.000000000 Z
13
+ date: 2012-11-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails