rghost 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -111,9 +111,11 @@ class RGhost::Grid::Base < RGhost::PsObject
111
111
  # link:images/format01.png
112
112
  def col(title="", options={})
113
113
  if title.is_a? Hash
114
+ puts "HASH #{self}::: #{title[:title]}"
114
115
  @header.col(title[:title],title)
115
116
  else
116
- @header.col(title[:title],options)
117
+ puts "NOHASH #{self}::: #{title.inspect}"
118
+ @header.col(title,options)
117
119
  end
118
120
  end
119
121
  #Alias for col
@@ -37,7 +37,7 @@ class RGhost::Grid::Header < RGhost::PsObject
37
37
  end
38
38
 
39
39
  def ps
40
-
40
+ puts "TTT#{@titles.inspect}"
41
41
  p,h=format_header
42
42
  @header.set RGhost::Variable.new(:header_titles,to_array(@titles))
43
43
  @header.set RGhost::Variable.new(:table_params," [\n #{p}] \n")
@@ -48,7 +48,7 @@ class RGhost::Grid::Header < RGhost::PsObject
48
48
  end
49
49
 
50
50
  def col(name="", options={}) #:nodoc:
51
-
51
+ puts "#{name} <-----> #{options.inspect} "
52
52
  opts=@default_options.merge(options)
53
53
  @size+=opts[:width]
54
54
  @data_types << opts[:format]
@@ -56,6 +56,7 @@ class RGhost::Grid::Rails < RGhost::Grid::Base
56
56
 
57
57
  def col(field_name, options={}) #:nodoc:
58
58
  super(options[:title],options)
59
+
59
60
  @rails_cols||=[]
60
61
  owf=options.dup #from options with field
61
62
  owf[:field_name]||=field_name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rghost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shairon Toledo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-09 00:00:00 -03:00
12
+ date: 2008-07-10 00:00:00 -03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15