blocks 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/blocks/_list.html.erb +1 -3
- data/lib/blocks/builder.rb +1 -3
- metadata +4 -15
@@ -1,7 +1,5 @@
|
|
1
1
|
<%= list.define :item do |options| %>
|
2
|
-
<%=
|
3
|
-
<%= options[:field] ? options[:record].send(:field) : options[:record].to_s %>
|
4
|
-
<% end %>
|
2
|
+
<%= options[:field] ? options[:record].send(:field) : options[:record].to_s %>
|
5
3
|
<% end %>
|
6
4
|
|
7
5
|
<%= list.define :items do |options| %>
|
data/lib/blocks/builder.rb
CHANGED
@@ -57,9 +57,7 @@ module Blocks
|
|
57
57
|
def render
|
58
58
|
self.start_rendering_blocks = false
|
59
59
|
|
60
|
-
if shared_options[:block]
|
61
|
-
shared_options[:captured_block] = view.capture(self, &shared_options[:block])
|
62
|
-
end
|
60
|
+
shared_options[:captured_block] = view.capture(self, &shared_options[:block]) if shared_options[:block]
|
63
61
|
|
64
62
|
self.start_rendering_blocks = true
|
65
63
|
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 1.1.0
|
4
|
+
prerelease:
|
5
|
+
version: 1.1.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Andrew Hunter
|
@@ -16,7 +11,7 @@ autorequire:
|
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
13
|
|
19
|
-
date: 2011-02-
|
14
|
+
date: 2011-02-17 00:00:00 -05:00
|
20
15
|
default_executable:
|
21
16
|
dependencies: []
|
22
17
|
|
@@ -56,23 +51,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
51
|
requirements:
|
57
52
|
- - ">="
|
58
53
|
- !ruby/object:Gem::Version
|
59
|
-
hash: 3
|
60
|
-
segments:
|
61
|
-
- 0
|
62
54
|
version: "0"
|
63
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
56
|
none: false
|
65
57
|
requirements:
|
66
58
|
- - ">="
|
67
59
|
- !ruby/object:Gem::Version
|
68
|
-
hash: 3
|
69
|
-
segments:
|
70
|
-
- 0
|
71
60
|
version: "0"
|
72
61
|
requirements: []
|
73
62
|
|
74
63
|
rubyforge_project: blocks
|
75
|
-
rubygems_version: 1.
|
64
|
+
rubygems_version: 1.5.0
|
76
65
|
signing_key:
|
77
66
|
specification_version: 3
|
78
67
|
summary: content_for with parameters, with advanced options such as a table generator (table_for)
|