ajaxify_rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ module ActionControllerAdditions
25
25
  if ajaxified?
26
26
  args = _normalize_args(*args, &block)
27
27
  layout = args[:layout] || current_layout
28
- layout = (layout == 'application' or layout == true) ? false : layout
28
+ layout = (layout == 'application' or layout == true or layout == false) ? false : layout
29
29
  args[:layout] = layout
30
30
 
31
31
  flashes = {}
@@ -59,6 +59,7 @@ module ActionControllerAdditions
59
59
  def current_layout
60
60
  return @current_layout if @current_layout
61
61
  @current_layout = _layout
62
+ return @current_layout if @current_layout == false
62
63
  @current_layout = File.basename(@current_layout.identifier).split('.').first unless @current_layout.instance_of? String
63
64
  @current_layout
64
65
  end
@@ -1,3 +1,3 @@
1
1
  module AjaxifyRails
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajaxify_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-17 00:00:00.000000000 Z
12
+ date: 2012-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  segments:
68
68
  - 0
69
- hash: -684738438102731951
69
+ hash: 1262153262325448279
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: -684738438102731951
78
+ hash: 1262153262325448279
79
79
  requirements: []
80
80
  rubyforge_project:
81
81
  rubygems_version: 1.8.24