bard_static 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,8 @@ module BardStatic
9
9
  end
10
10
 
11
11
  def static
12
- with_404_handler { render_with_index "static/#{params[:file_path]}" }
12
+ layout = !request.xhr? # render ajax responses with no layout
13
+ with_404_handler { render_with_index "static/#{params[:file_path]}", :layout => layout }
13
14
  end
14
15
 
15
16
  private
@@ -1,3 +1,3 @@
1
1
  module BardStatic
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard_static
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 0
10
- version: 1.4.0
9
+ - 1
10
+ version: 1.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Micah Geisel
@@ -21,7 +21,7 @@ autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
23
 
24
- date: 2012-10-29 00:00:00 Z
24
+ date: 2012-11-13 00:00:00 Z
25
25
  dependencies: []
26
26
 
27
27
  description: Handcrafted prototypes for Rails.