rails_table_for 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46ed7fec539a57803c20274555f370ba81591bab36fea61fe8fd2b8fffd4a879
4
- data.tar.gz: 937b1deb4f57be39031a3c1f4bf4bd30cf861430591dce7e67812e36d2589bd2
3
+ metadata.gz: 17aa0bfba6fcbc0bd654563d1ade26ccae6bccce2b3d3eef17fcebb0700fa07b
4
+ data.tar.gz: 4d9cb78f6615c22cee8749569d3d3672e3d815a845cb1eb059b77bce95cff8c7
5
5
  SHA512:
6
- metadata.gz: 87faf56055c0409fefea0426c28b52d03bdd86c92c9efb730249cf3a8f91bfe2332a184e91981a7ef700b8d4711f4ea8d5fd7b15d1a3bac4b538ec890747d15f
7
- data.tar.gz: ad371eb6cecbf3f9a88196bb95ebb8cd21e1ba8f7eaddf766865d8c957dfd07549d497d1cf1be4187c06782825c9cbf7bcc5af5fdaf4e792db03f6e78c4a1d5a
6
+ metadata.gz: '09f28a86696b672b0dd76e428fd93bfe5fb467aa49947d346536b5a60fe34912100c18947d6fd89ab1556a56b3ac7d9a45031eb4c66376c67b04e6234c9f071d'
7
+ data.tar.gz: b2d00a69c94bdd3ddc12fdc8bf3fdee71377b5d2401a9600f72bf9d62e5cc3594f6dad525e083b3d1b9463c9877f797571f1155013f6c4d79b9f58d65eae061b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_table_for (0.3.3)
4
+ rails_table_for (0.4.0)
5
5
  rails (>= 5)
6
6
 
7
7
  GEM
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsTableFor
4
- VERSION = '0.3.3'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_table_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Roos