columns_on_demand 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/columns_on_demand.rb +1 -1
- data/lib/columns_on_demand/version.rb +1 -1
- metadata +3 -3
data/lib/columns_on_demand.rb
CHANGED
@@ -129,7 +129,7 @@ module ColumnsOnDemand
|
|
129
129
|
|
130
130
|
module RelationMethods
|
131
131
|
def build_select_with_columns_on_demand(arel, selects)
|
132
|
-
if selects.empty?
|
132
|
+
if selects.empty? && respond_to?(:default_select)
|
133
133
|
build_select_without_columns_on_demand(arel, default_select(true))
|
134
134
|
else
|
135
135
|
build_select_without_columns_on_demand(arel, selects)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: columns_on_demand
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 1
|
10
|
+
version: 3.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Will Bryant
|