ack-mongoid-forums 1.0.6 → 1.0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/mongoid_forums/topic.rb +2 -2
- data/lib/mongoid_forums/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90cd0e6143e23778999bcd0f806af2a656be3d65
|
4
|
+
data.tar.gz: fe97b20123b3c551f633b44f3ada91bd7069f5e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01a8c162442f62244a8172545bef0af2e557f4a6f64baa37c9f755b3c969ef60fd6a7b8bb3dcde20843a462352a87037f265e28c246b500c525fbcc4eff26ab3
|
7
|
+
data.tar.gz: 437a4d1613cb8f95effc65114dff3e9c242a9f47e3aae93fc32658c5c2de05b0e13d77be8204f80575857334758088b86944179e78e1189e6b047ed583ba49fd
|
@@ -36,8 +36,8 @@ module MongoidForums
|
|
36
36
|
validates :name, :presence => true, :length => { maximum: 255 }
|
37
37
|
validates :user, :presence => true
|
38
38
|
|
39
|
-
scope :by_most_recent_post, order_by([:last_post_at, :desc])
|
40
|
-
scope :by_pinned_or_most_recent_post, order_by([:pinned, :desc], [:last_post_at, :desc])
|
39
|
+
scope :by_most_recent_post, -> { order_by([:last_post_at, :desc]) }
|
40
|
+
scope :by_pinned_or_most_recent_post, -> { order_by([:pinned, :desc], [:last_post_at, :desc]) }
|
41
41
|
|
42
42
|
def can_be_replied_to?
|
43
43
|
!locked?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ack-mongoid-forums
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.6
|
4
|
+
version: 1.0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ack43
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|