activerecord-sort 1.0.1 → 5.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/active_record/base.rb +7 -3
- data/lib/active_record/sort.rb +2 -0
- data/lib/active_record/sort/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88a4c74b00810b9fca1fa8a887dff77f0cb41b2d
|
4
|
+
data.tar.gz: 615d95d5da8a5159e5817cb836fcf7c66089e78c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a845ec7bedb90e31e80bae20cdfa22ceac01104d95350d3f9fcc265ad4262a7c3cba0a607fbe652a2fba35ed3ec88f802b00f565413a5d21aa1275f9e4980cb5
|
7
|
+
data.tar.gz: 413c3556dcf7fc8bd6342be9e6ac6daa73bce75d37f71ef977eea1c552548f12cb000eccd7a061d2e7f4639ea524b4098884e96c52645e3c2f9daf9e2eca58ea
|
data/ext/active_record/base.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'active_record'
|
2
|
+
require 'active_record/relation'
|
3
|
+
|
4
|
+
module ActiveRecord
|
5
|
+
module QueryMethods
|
6
|
+
# class << self
|
3
7
|
|
4
8
|
# ordering:
|
5
9
|
# :id
|
@@ -109,4 +113,4 @@ class ActiveRecord::Base
|
|
109
113
|
end
|
110
114
|
|
111
115
|
end
|
112
|
-
end
|
116
|
+
end
|
data/lib/active_record/sort.rb
CHANGED
@@ -5,3 +5,5 @@ require File.expand_path(File.join(__FILE__, '../../../ext/arel/nodes/ascending'
|
|
5
5
|
require File.expand_path(File.join(__FILE__, '../../../ext/arel/nodes/descending'))
|
6
6
|
require File.expand_path(File.join(__FILE__, '../../../ext/arel/visitors/postgresql'))
|
7
7
|
require File.expand_path(File.join(__FILE__, '../../../ext/active_record/base'))
|
8
|
+
|
9
|
+
ActiveRecord::Querying.delegate :sort, to: :all
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-sort
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Bracy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.0.0.beta1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 5.0.0.beta1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,12 +170,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: '0'
|
171
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
172
|
requirements:
|
173
|
-
- - "
|
173
|
+
- - ">"
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version:
|
175
|
+
version: 1.3.1
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.5.1
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: A safe way to accept user parameters and order against your ActiveRecord
|