rails_table_for 0.3.3 → 0.4.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rails_table_for/elements/table.rb +2 -1
- data/lib/rails_table_for/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17aa0bfba6fcbc0bd654563d1ade26ccae6bccce2b3d3eef17fcebb0700fa07b
|
|
4
|
+
data.tar.gz: 4d9cb78f6615c22cee8749569d3d3672e3d815a845cb1eb059b77bce95cff8c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '09f28a86696b672b0dd76e428fd93bfe5fb467aa49947d346536b5a60fe34912100c18947d6fd89ab1556a56b3ac7d9a45031eb4c66376c67b04e6234c9f071d'
|
|
7
|
+
data.tar.gz: b2d00a69c94bdd3ddc12fdc8bf3fdee71377b5d2401a9600f72bf9d62e5cc3594f6dad525e083b3d1b9463c9877f797571f1155013f6c4d79b9f58d65eae061b
|
data/Gemfile.lock
CHANGED
|
@@ -22,6 +22,7 @@ module RailsTableFor
|
|
|
22
22
|
@page_size = options[:page_size]
|
|
23
23
|
@request_path = options[:request_path]
|
|
24
24
|
@request_params = options[:request_params]
|
|
25
|
+
@table_class = options[:class]
|
|
25
26
|
end
|
|
26
27
|
|
|
27
28
|
def column(field = nil, **options, &block)
|
|
@@ -50,7 +51,7 @@ module RailsTableFor
|
|
|
50
51
|
end
|
|
51
52
|
|
|
52
53
|
def table
|
|
53
|
-
content_tag :table do
|
|
54
|
+
content_tag :table, class: @table_class do
|
|
54
55
|
head + body
|
|
55
56
|
end
|
|
56
57
|
end
|