bard_static 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +2 -1
- data/app/controllers/bard_static/static_controller.rb +6 -2
- data/lib/bard_static/version.rb +1 -1
- metadata +4 -4
data/Gemfile
CHANGED
@@ -25,10 +25,14 @@ module BardStatic
|
|
25
25
|
|
26
26
|
def render_with_index path, options = {}
|
27
27
|
begin
|
28
|
-
|
28
|
+
options = options.dup # render is destructive to the options hash!
|
29
|
+
options = options.merge(:partial => path)
|
30
|
+
render options
|
29
31
|
rescue ActionView::MissingTemplate
|
30
|
-
|
32
|
+
options[:partial] = "#{path}/index"
|
33
|
+
render options
|
31
34
|
end
|
32
35
|
end
|
33
36
|
end
|
34
37
|
end
|
38
|
+
|
data/lib/bard_static/version.rb
CHANGED
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:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 3
|
10
|
+
version: 1.4.3
|
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: 2013-
|
24
|
+
date: 2013-06-12 00:00:00 Z
|
25
25
|
dependencies: []
|
26
26
|
|
27
27
|
description: Handcrafted prototypes for Rails.
|