columns_on_demand 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,8 +26,10 @@ Compatibility
26
26
 
27
27
  Supports mysql, mysql2, postgresql, and sqlite3.
28
28
 
29
- Currently tested against Rails 2.3.14, 3.0.17, 3.1.8, and 3.2.8. Note that
30
- 3.0 and 3.1 have ActiveRecord regressions that will affect sqlite users.
29
+ Currently tested against Rails 3.2.13 and 3.1.8, on Ruby 1.8.7 and 2.0.0p0.
30
+ Was also tested compatible with 2.3.14 and 3.0.17.
31
+
32
+ Note that 3.0 and 3.1 have ActiveRecord regressions that will affect sqlite users.
31
33
  EOF
32
34
  gem.has_rdoc = false
33
35
  gem.author = "Will Bryant"
@@ -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? && respond_to?(:default_select)
132
+ if selects.empty? && klass < ColumnsOnDemand::InstanceMethods
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.1'
2
+ VERSION = '3.0.2'
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 1
10
- version: 3.0.1
9
+ - 2
10
+ version: 3.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Will Bryant
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-04-20 00:00:00 Z
18
+ date: 2013-04-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activerecord
@@ -122,8 +122,10 @@ description: |
122
122
 
123
123
  Supports mysql, mysql2, postgresql, and sqlite3.
124
124
 
125
- Currently tested against Rails 2.3.14, 3.0.17, 3.1.8, and 3.2.8. Note that
126
- 3.0 and 3.1 have ActiveRecord regressions that will affect sqlite users.
125
+ Currently tested against Rails 3.2.13 and 3.1.8, on Ruby 1.8.7 and 2.0.0p0.
126
+ Was also tested compatible with 2.3.14 and 3.0.17.
127
+
128
+ Note that 3.0 and 3.1 have ActiveRecord regressions that will affect sqlite users.
127
129
 
128
130
  email: will.bryant@gmail.com
129
131
  executables: []