simple_table 0.0.9 → 0.0.10

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] = "#{table.collection_name.singularize}_#{record.id}" # dom_id(record) if record.respond_to?(:new_record?)
21
+ options[:id] = "#{table.collection_name.singularize}_#{record.id}"
22
22
  add_class!(options, 'alternate') if ix % 2 == 1
23
23
  end
24
24
  end
@@ -16,8 +16,7 @@ module SimpleTable
16
16
  end
17
17
 
18
18
  def translate(content)
19
- scope = [SimpleTable.options[:i18n_scope], table.collection_name, :columns].compact
20
- table.view.t(content, :scope => scope)
19
+ table.view.t(:".columns.#{name}", :default => '')
21
20
  end
22
21
 
23
22
  def attribute_name
@@ -1,3 +1,3 @@
1
1
  module SimpleTable
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  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: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sven Fuchs