sortability 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sortability/active_record/base.rb +2 -1
- data/lib/sortability/version.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0c25a30046ab1c63c849bf3f5c5955b30e237b5
|
4
|
+
data.tar.gz: b21fea91cfbc95d4a3d62d4a56b75106452d3b61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 689a20e1ea4bee8f63f5fd9854f75331393d375408cec56de3d02761d9fe65c7c3b7b2cff1830c6684c9efdf006470ebfee0d2ece1e295b1815754598adbe03d
|
7
|
+
data.tar.gz: 7b1123cc8b8a6b52eb931b200201a712a358c16b757b9fe576cfe0b84e2bdf4e8f8623c5376a45c0436acb932ac148d207d1198581a1e75d4ada2a8631fbe794
|
@@ -26,8 +26,9 @@ module Sortability
|
|
26
26
|
|
27
27
|
# Returns all the sort peers for this record, including self
|
28
28
|
define_method peers_mname do |force_scope_load = false|
|
29
|
+
cont = container.nil? ? nil : send(container)
|
29
30
|
return send(container).send(inverse_of) \
|
30
|
-
unless force_scope_load ||
|
31
|
+
unless force_scope_load || cont.nil? || inverse_of.nil?
|
31
32
|
|
32
33
|
relation = self.class.unscoped
|
33
34
|
scope_array.each do |s|
|
data/lib/sortability/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sortability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dante Soares
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -25,6 +25,20 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: squeel
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: sqlite3
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,14 +59,14 @@ dependencies:
|
|
45
59
|
requirements:
|
46
60
|
- - ">="
|
47
61
|
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
62
|
+
version: '3.0'
|
49
63
|
type: :development
|
50
64
|
prerelease: false
|
51
65
|
version_requirements: !ruby/object:Gem::Requirement
|
52
66
|
requirements:
|
53
67
|
- - ">="
|
54
68
|
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
69
|
+
version: '3.0'
|
56
70
|
description: Provides ActiveRecord methods that make it easy to allow users to sort
|
57
71
|
and reorder records in a list
|
58
72
|
email:
|
@@ -130,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
144
|
version: '0'
|
131
145
|
requirements: []
|
132
146
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.4.5
|
134
148
|
signing_key:
|
135
149
|
specification_version: 4
|
136
150
|
summary: Rails gem that provides easy to use ordered records
|