showbuilder 0.0.6 → 0.0.7

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.
@@ -14,7 +14,7 @@ module Showbuilder
14
14
  @template = template
15
15
  end
16
16
 
17
- def build_model_view(&block)
17
+ def build_model_view(&block)
18
18
  unless @model
19
19
  return
20
20
  end
@@ -34,11 +34,11 @@ module Showbuilder
34
34
  method_label = self.show_current_itext(methods)
35
35
  method_value = self.call_object_methods(model, methods)
36
36
  method_link = self.call_object_methods(model, link_method)
37
-
37
+
38
38
  self.contents_tag :tr do |contents|
39
- contents << self.content_tag(:td, method_label.to_s, :class => "span2 left")
40
- contents << self.content_tag(:td, :class => "span2 right") do
41
- self.show_model_link_to(method_value.to_s, method_link)
39
+ contents << self.content_tag(:td, method_label.to_s)
40
+ contents << self.content_tag(:td) do
41
+ self.show_model_link_to(method_value.to_s, method_link)
42
42
  end
43
43
  end
44
44
  end
@@ -71,12 +71,12 @@ module Showbuilder
71
71
  method_label = self.show_current_itext(method)
72
72
  method_value = self.call_object_methods(model, method)
73
73
  if block
74
- method_value = block.call(method_value)
74
+ method_value = block.call(method_value)
75
75
  end
76
76
 
77
77
  self.contents_tag :tr do |contents|
78
- contents << self.content_tag(:td, method_label.to_s, :class => "span2 left")
79
- contents << self.content_tag(:td, method_value.to_s, :class => "span2 right")
78
+ contents << self.content_tag(:td, method_label.to_s)
79
+ contents << self.content_tag(:td, method_value.to_s)
80
80
  end
81
81
  end
82
82
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: showbuilder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ery Wang, Mario Du
@@ -15,10 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-24 00:00:00 Z
18
+ date: 2012-06-12 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
- description: A Rails View Helper. Show model/s as view, form, list.
21
+ description: A Rails View Helper. Show model/s as view, form, table.
22
22
  email: ery@baoleihang.com
23
23
  executables: []
24
24