gridy 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gridy/version.rb +1 -1
- data/lib/gridy/view_helpers.rb +4 -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: 66c0d42e946cb8ceafe4a111a998494c955f4a9a035c903d0d0027744679323e
|
4
|
+
data.tar.gz: 6527df2efdc6bf95009558ae508fcfcd9970ea7185add0ff32244b84b3c2d919
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e0062d0aafa320326cf7904f7d699a164f6e4622780d5cb78ec455d20e5d9fae89ef59a062225de5e17b17675469572ac725d93bdd02e7f7c5ead7d01fadfa
|
7
|
+
data.tar.gz: 2a0ce19b7cecd8ff8b7b44dbbc4ae1b5e0f2bc83bcbc2076531812e277d0cff294493cd69f6c7958501d8b095b090c852df2ad1fe5c9f05bc1b8629fa6424ed4
|
data/lib/gridy/version.rb
CHANGED
data/lib/gridy/view_helpers.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require "pagy"
|
2
|
+
require "turbo-rails"
|
3
|
+
|
1
4
|
module Gridy
|
2
5
|
module ViewHelpers
|
3
6
|
include Turbo::FramesHelper
|
@@ -13,7 +16,7 @@ module Gridy
|
|
13
16
|
|
14
17
|
def gridy_table_header(field, title = nil, sortable: false)
|
15
18
|
unless sortable
|
16
|
-
return
|
19
|
+
return title || field.to_s.titleize
|
17
20
|
end
|
18
21
|
|
19
22
|
uri = URI(request.url)
|