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.
- data/lib/simple_table/body.rb +1 -1
- data/lib/simple_table/column.rb +1 -2
- data/lib/simple_table/version.rb +1 -1
- metadata +3 -3
data/lib/simple_table/body.rb
CHANGED
@@ -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}"
|
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
|
data/lib/simple_table/column.rb
CHANGED
@@ -16,8 +16,7 @@ module SimpleTable
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def translate(content)
|
19
|
-
|
20
|
-
table.view.t(content, :scope => scope)
|
19
|
+
table.view.t(:".columns.#{name}", :default => '')
|
21
20
|
end
|
22
21
|
|
23
22
|
def attribute_name
|
data/lib/simple_table/version.rb
CHANGED
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sven Fuchs
|