shim 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/shim/pages_controller.rb +7 -1
- data/lib/shim/version.rb +1 -1
- metadata +2 -2
@@ -1,6 +1,12 @@
|
|
1
1
|
class Shim::PagesController < ActionController::Base
|
2
2
|
unloadable
|
3
|
-
layout Proc.new { |
|
3
|
+
layout Proc.new { |controller|
|
4
|
+
if controller.request.xhr?
|
5
|
+
false
|
6
|
+
else
|
7
|
+
::Shim.layout
|
8
|
+
end
|
9
|
+
}
|
4
10
|
|
5
11
|
rescue_from ActionView::MissingTemplate do |exception|
|
6
12
|
if exception.message =~ %r{Missing template #{content_path}}
|
data/lib/shim/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
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-
|
13
|
+
date: 2012-11-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|