scopie_rails 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/scopie_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4202305d302349a69d8ba5204a67bf56c2cd179
|
4
|
+
data.tar.gz: b4756f315531546cc97677d52792bffc32dfef04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a481385ca18d95fc8803b00750f7b5e33d91f27a8e5b1dee276a9f169c40e38f6fdb3446af4462b49a688338765cf65fcc069a79b0c2f73bdd41a84789d0694b
|
7
|
+
data.tar.gz: 24226eab516434af4dbabc343880ae213721072b11465f18191a5dafc4536251061b0778f28d2b1ff3655e042134ebc102fb537b092b4a893e28786764caad8e
|
data/README.md
CHANGED
@@ -21,10 +21,10 @@ class Graduation < ActiveRecord::Base
|
|
21
21
|
scope :by_degree, -> (degree) { where(degree: degree) }
|
22
22
|
scope :by_period, -> (started_at, ended_at) { where('started_at = ? AND ended_at = ?', started_at, ended_at) }
|
23
23
|
|
24
|
-
scope :created_at_greater_than, ->(date) { where('
|
25
|
-
scope :created_at_less_than, ->(date) { where('
|
26
|
-
scope :updated_at_greater_than, ->(date) { where('
|
27
|
-
scope :updated_at_less_than, ->(date) { where('
|
24
|
+
scope :created_at_greater_than, ->(date) { where('created_at >= ?', date.beginning_of_day) }
|
25
|
+
scope :created_at_less_than, ->(date) { where('created_at <= ?', date.end_of_day) }
|
26
|
+
scope :updated_at_greater_than, ->(date) { where('updated_at >= ?', date.beginning_of_day) }
|
27
|
+
scope :updated_at_less_than, ->(date) { where('updated_at <= ?', date.end_of_day) }
|
28
28
|
|
29
29
|
end
|
30
30
|
```
|
data/lib/scopie_rails/version.rb
CHANGED