autotable 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/autotable/builder.rb +3 -3
- data/lib/autotable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce373a57023f49243a0bcf76cf51049c00d5195c
|
4
|
+
data.tar.gz: 099a9dd17554b8c4c5825f4327f607b34ffc1957
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b56903d0e76b5f1eab7b692c7c466a6686a17314c2dafaf7f09435ef9525e301636c363804b88026404ae0936f07b33149028c4ff907a7b50d53ffac4492c74e
|
7
|
+
data.tar.gz: d6a4b39b029f3fd55c6ac1a409f6da9ea098d9dcf62d5e85e672c686b9b24546cfacfa52e37693c33b07c0fe5e2e2058e59ea0f48255b83946c38e66da1b3757
|
data/lib/autotable/builder.rb
CHANGED
@@ -68,7 +68,7 @@ module Autotable
|
|
68
68
|
html << "<th>#{h(c[:title])}</th>\n"
|
69
69
|
end
|
70
70
|
|
71
|
-
html << "<th>Actions</th>\n"
|
71
|
+
html << "<th class='actions'>Actions</th>\n"
|
72
72
|
html << "</tr>\n"
|
73
73
|
html << "</thead>\n"
|
74
74
|
html
|
@@ -109,13 +109,13 @@ module Autotable
|
|
109
109
|
action_class = @options[:action_class] + ' '
|
110
110
|
action_class << (a[:class] || 'btn-default')
|
111
111
|
|
112
|
-
link_options = a.slice(:confirm, :method, :remote)
|
112
|
+
link_options = a.slice(:confirm, :method, :remote, :data)
|
113
113
|
link_options[:class] = action_class
|
114
114
|
|
115
115
|
@template.link_to(text.html_safe, url, link_options)
|
116
116
|
}.join(' ')
|
117
117
|
|
118
|
-
html << "<td>#{actions}</td>"
|
118
|
+
html << "<td class='actions'>#{actions}</td>"
|
119
119
|
|
120
120
|
html << "</tr>\n"
|
121
121
|
end
|
data/lib/autotable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autotable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Frame
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|