columns_on_demand 3.0.0 → 3.0.1

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.
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module ColumnsOnDemand
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 0
10
- version: 3.0.0
9
+ - 1
10
+ version: 3.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Will Bryant