columns_on_demand 3.0.1 → 3.0.2
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.
- data/columns_on_demand.gemspec +4 -2
- data/lib/columns_on_demand.rb +1 -1
- data/lib/columns_on_demand/version.rb +1 -1
- metadata +8 -6
data/columns_on_demand.gemspec
CHANGED
@@ -26,8 +26,10 @@ Compatibility
|
|
26
26
|
|
27
27
|
Supports mysql, mysql2, postgresql, and sqlite3.
|
28
28
|
|
29
|
-
Currently tested against Rails 2.
|
30
|
-
|
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"
|
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? && 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)
|
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: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
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-
|
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.
|
126
|
-
|
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: []
|