simple_table 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module SimpleTable
18
18
 
19
19
  def options_for_record(record, ix, options = {})
20
20
  options.dup.tap do |options|
21
- options[:id] = dom_id(record) if record.respond_to?(:new_record?)
21
+ # options[:id] = dom_id(record) if record.respond_to?(:new_record?)
22
22
  add_class!(options, 'alternate') if ix % 2 == 1
23
23
  end
24
24
  end
@@ -11,7 +11,7 @@ module SimpleTable
11
11
  end
12
12
 
13
13
  def render
14
- super(content, true)
14
+ super(content, !content.html_safe?)
15
15
  end
16
16
 
17
17
  def tag_name
@@ -1,3 +1,3 @@
1
1
  module SimpleTable
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
data/lib/simple_table.rb CHANGED
@@ -18,7 +18,6 @@ module SimpleTable
18
18
  }
19
19
 
20
20
  def table_for(collection = [], options = {}, &block)
21
- html = Table.new(self, collection, options, &block).render.html_safe
22
- concat html
21
+ Table.new(self, collection, options, &block).render.html_safe
23
22
  end
24
23
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_table
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sven Fuchs
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-08-02 00:00:00 +02:00
19
+ date: 2010-08-03 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency