ct_table_for 0.1.9.beta → 0.1.10.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/app/helpers/ct_table_for/application_helper.rb +1 -1
- data/lib/ct_table_for/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52100b153a2d16f55cb1834c38bb45b2775c15cc
|
4
|
+
data.tar.gz: 8733db9951e3813d1a6575924c654406c6cf90d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b34690e68907e264230852281ddba97f94e3c4d8ae36020ca2b2f5e991eb66355bcb67037ade27b4f353f594e93ba58a3e3f66019694b311ac207cf534793c4
|
7
|
+
data.tar.gz: 0e15d6c34095047a9e8895f409f11c6b4215bcf473a116e596e7a4d44d5865209a652ae3f44f5be16813dd49bbf275e6f876f5c7598c0270b08212d2180171d8
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Rails Responsive Table
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/ct_table_for.svg)](https://badge.fury.io/rb/ct_table_for)
|
4
|
+
|
3
5
|
**[Rails Responsive Table](https://github.com/CodiTramuntana/ct_table_for)** is a rails table builder for an ActiveRecord collection.
|
4
6
|
|
5
7
|
## Optional gems
|
@@ -14,7 +16,7 @@
|
|
14
16
|
|
15
17
|
Add it to your Gemfile:
|
16
18
|
|
17
|
-
`gem 'ct_table_for'
|
19
|
+
`gem 'ct_table_for'`
|
18
20
|
|
19
21
|
Then:
|
20
22
|
|
@@ -130,7 +130,7 @@ module CtTableFor
|
|
130
130
|
html = ""
|
131
131
|
size = cell_options.select{ |opt| ["thumb", "original", "small", "medium"].include? opt }.first || "thumb"
|
132
132
|
|
133
|
-
html << image_tag(record.send(attribute).url(size), class: CtTableFor.
|
133
|
+
html << image_tag(record.send(attribute).url(size), class: CtTableFor.table_for_cell_for_image_image_class, style: "max-height: 100px;")
|
134
134
|
html.html_safe
|
135
135
|
end
|
136
136
|
|
data/lib/ct_table_for/version.rb
CHANGED