table_sortable 1.0.0.pre.alpha.12 → 1.0.0.pre.alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7eb93a7e21ea779c3f03c82cb279f59088cc3988
4
- data.tar.gz: cd27886054b761a48aba24fefe23a171b01179ef
3
+ metadata.gz: b9759388df136fc01767628b691d9c6b03b375d0
4
+ data.tar.gz: 33ab2ec5d49f15591566fc6b649efd3df5d5f852
5
5
  SHA512:
6
- metadata.gz: 878b2ae405410a3d9ecee13681bb12ee8a8b24dd6bc4b2d2da13efbd51e163bc92db5554ae056773d91f9b562ff9a8a5d9bc3a7f0a13be4045fc53e3f7d831cd
7
- data.tar.gz: 51c080bbba1d25125625c5327dba0038f74156da0420e19764b2a79dfcfbe301128467ce87767b72e6e392974001792909f9bc4a8ae80c8c0a374f9aafb3bbc1
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
@@ -1,3 +1,3 @@
1
1
  module TableSortable
2
- VERSION = "1.0.0.pre.alpha.12"
2
+ VERSION = "1.0.0.pre.alpha.13"
3
3
  end
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.12
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-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler