rao-component 0.0.51.pre → 0.0.52.pre

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: a1915f0837604520a6f488ac97370e9470ddd423f8418799d6781cb258a6a4d3
4
- data.tar.gz: c59ff2dd3090293f436ed16c7ef41d5c513de9a5d3621025f443add587b34732
3
+ metadata.gz: f6e0992a7b6934f2c3fec925a35b554c1988fcce85472458632fd1f87663d2c2
4
+ data.tar.gz: 771a942fb70b22548eb760caba0c1b604c504ae8ff7c8d83b7f5c48a5b1fa704
5
5
  SHA512:
6
- metadata.gz: c355081354e2ea9a2329ce688c19df2958515a31b688c971ae307cdb79907c7d78c9434e42e173f72a3bfbc3fe2fe53cd53c05320d7590051df1d263b09a3418
7
- data.tar.gz: c167915645cd76eeae8871b52456ca5e8f97f8fd87fb4fc1876202cb1b41ee57f2c7f009cc24d03cc1f9f6016d068a5e01904a2725957395fec82c456ceac6ed
6
+ metadata.gz: 536f2be0aa2d332332c33ba6ff248bf351dbfe50682d7aef5c0cd5e36d28e3f5174f6c8913ca9c51b8436db5d5b43feebb34642fe48f3afff1a5d7c96836c351
7
+ data.tar.gz: 6d92d3a08f9a4a53b3acf5094a225a54d2e3021359228c73d3842dbf99fb7f1e0b453ebcbb053922a4e079e815c8b519524f5933651aff1f16aab7ac9b66d40b
@@ -49,6 +49,8 @@ module Rao
49
49
  @columns[name] = options
50
50
  end
51
51
 
52
+ alias_method :field, :column
53
+
52
54
  def id(options = {}, &block)
53
55
  column(:id, options, &block)
54
56
  end
@@ -42,6 +42,8 @@ module Rao
42
42
  @rows[name] = options
43
43
  end
44
44
 
45
+ alias_method :field, :row
46
+
45
47
  def id(options = {}, &block)
46
48
  row(:id, options, &block)
47
49
  end
@@ -73,6 +75,7 @@ module Rao
73
75
  end
74
76
 
75
77
  def table_css_classes
78
+ return @options[:table_html] if @options.has_key?(:table_html)
76
79
  classes = ['table', 'resource-table', @resource_class.name.underscore.gsub('/', '-')]
77
80
  classes << 'table-bordered' if bordered?
78
81
  classes << 'table-hover' if hover?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rao-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.51.pre
4
+ version: 0.0.52.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-28 00:00:00.000000000 Z
11
+ date: 2024-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails