tabulatr2 0.9.28 → 0.9.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tabulatr/data/data.rb +2 -1
- data/lib/tabulatr/version.rb +1 -1
- data/spec/lib/tabulatr/renderer/renderer_spec.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5aec598ddedf0f1456066f02bcf64ed3957f5d6
|
4
|
+
data.tar.gz: bad8a12efe47459bd4f5e7739365ba4dd36fc380
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c342b899122045438c240753c535abd1589b10ecbcbeb77a6ce4fcc6786de4f4fbdb69ca42acf014e7578502f9a710f3a9ab2305838e7a794b45b48f6083ee
|
7
|
+
data.tar.gz: 95cad2508988b6cd350682306152878a40df059d0c78b5a60ee87a0a9c9fc0230c5ef007681d6b0f2534e54deed4b79f731ea01d881d18fbcf92237611bbd865
|
data/lib/tabulatr/data/data.rb
CHANGED
@@ -25,7 +25,8 @@ class Tabulatr::Data
|
|
25
25
|
|
26
26
|
def initialize(relation)
|
27
27
|
@relation = relation
|
28
|
-
@base =
|
28
|
+
@base = self.class.main_class rescue nil
|
29
|
+
@base ||= relation.respond_to?(:klass) ? relation.klass : relation
|
29
30
|
@table_name = @base.table_name
|
30
31
|
@search = self.class.instance_variable_get('@search') || HashWithIndifferentAccess.new
|
31
32
|
@includes = Set.new()
|
data/lib/tabulatr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabulatr2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Horn
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -281,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
281
281
|
version: '0'
|
282
282
|
requirements: []
|
283
283
|
rubyforge_project:
|
284
|
-
rubygems_version: 2.
|
284
|
+
rubygems_version: 2.5.1
|
285
285
|
signing_key:
|
286
286
|
specification_version: 4
|
287
287
|
summary: A tight DSL to build tables of ActiveRecord models with sorting, pagination,
|