shim 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,12 @@
1
1
  class Shim::PagesController < ActionController::Base
2
2
  unloadable
3
- layout Proc.new { |_| ::Shim.layout }
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
@@ -1,3 +1,3 @@
1
1
  module Shim
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
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.2
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-15 00:00:00.000000000 Z
13
+ date: 2012-11-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails