snaptable 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08b21c07882beab073b31b88ed3df1a9575277a5
4
- data.tar.gz: af669f1fcd330994aa13c4a322f744755dd241a5
3
+ metadata.gz: 425f7b1eff1c147de09531a263b41987c67fde2d
4
+ data.tar.gz: f7000b471d917f975c2497bfd46d518903e54774
5
5
  SHA512:
6
- metadata.gz: b4d522887278216eb17c5305fbd1c5a80b4f241d27994064194ce40998bcd54d08a9a805a5d47a531164b6b496b5cbbf08450b6abc0dbd0500251b0177351c31
7
- data.tar.gz: 7712b08a99184ce9df4b5ba3b16a154b0dc5c49ff999b519ffb4f9073ae9f750760b5c5a77b7e3a2160f10a05e5fc20b08466b4e485a0374c47d20756b0e4a08
6
+ metadata.gz: 43c2cdd003b6b50d1dd6ab6973e87bc22ff130cb4d36cb43e7362bf13148aaf5c92709dcc7af3853751cbc263e11919af400e6c1def17fd846246d780402529b
7
+ data.tar.gz: 8133473172ac95a85574d173fbd3f3e00466436292e8ac34c7b28b94fd6e307a44e3a0052c18c8c587d4e324cf7d4a994976d0045d478f207d76bec6c8df41dc
@@ -12,8 +12,8 @@ module Snaptable
12
12
 
13
13
  def initialize(parent, collection = nil, options = {})
14
14
  super(parent)
15
- @collection = collection
16
15
  @options = options
16
+ @collection = collection || model.none
17
17
  @token = stored_token if Snaptable.use_permission
18
18
  end
19
19
 
@@ -36,4 +36,4 @@ module Snaptable
36
36
  end
37
37
  end
38
38
 
39
- BaseTable = Snaptable::Constructor::BaseTable
39
+ BaseTable = Snaptable::Constructor::BaseTable
@@ -3,7 +3,7 @@ module Snaptable
3
3
  module Collection
4
4
 
5
5
  def collection
6
- model.includes(belongs_to_associations)
6
+ @collection.includes(belongs_to_associations)
7
7
  end
8
8
 
9
9
  def records
@@ -46,4 +46,4 @@ module Snaptable
46
46
 
47
47
  end
48
48
  end
49
- end
49
+ end
@@ -1,3 +1,3 @@
1
1
  module Snaptable
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-28 00:00:00.000000000 Z
11
+ date: 2016-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails