table_sortable 1.0.0.pre.alpha.12 → 1.0.0.pre.alpha.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/table_sortable/column.rb +3 -1
- data/lib/table_sortable/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: b9759388df136fc01767628b691d9c6b03b375d0
|
4
|
+
data.tar.gz: 33ab2ec5d49f15591566fc6b649efd3df5d5f852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6f90cd6380bbea36f0db6e8e4c9d4fcf921e85f12aff688fda8deccf031c7e22824ccab768b46eb988b6e5df1a30597b5945b55a4720188349e870fbba4d2cc
|
7
|
+
data.tar.gz: 01e168d4a139ae89106d1b984026e300f1d477c9b68da574a10956e26d4f983a4b1245e97e537de4aa2694074872ca32bcbaa92bda03136837c0f695003f8577
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TableSortable
|
2
2
|
class Column
|
3
3
|
|
4
|
-
attr_reader :name, :label, :filter, :sorter, :template, :placeholder, :content, :translation_key, :options, :template_path, :includes
|
4
|
+
attr_reader :name, :label, :filter, :sorter, :template, :placeholder, :content, :translation_key, :options, :template_path, :includes, :scope
|
5
5
|
attr_writer :visible
|
6
6
|
|
7
7
|
def initialize(col_name, *options)
|
@@ -16,6 +16,7 @@ module TableSortable
|
|
16
16
|
template = options[:template] || col_name
|
17
17
|
column_options = options[:options] || {}
|
18
18
|
includes = options[:includes] || []
|
19
|
+
scope = options[:scope]
|
19
20
|
visible = options[:visible].nil? ? true : options[:visible]
|
20
21
|
|
21
22
|
@name = col_name.to_sym
|
@@ -27,6 +28,7 @@ module TableSortable
|
|
27
28
|
@template_path = template_path
|
28
29
|
@translation_key = translation_key
|
29
30
|
@visible = visible
|
31
|
+
@scope = scope
|
30
32
|
@includes = [includes].flatten.map{|as| as.is_a?(Hash) ? as : {as => []}}
|
31
33
|
|
32
34
|
@options = column_options
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table_sortable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.alpha.
|
4
|
+
version: 1.0.0.pre.alpha.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oded Davidov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|