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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d52971438d595ba7c1ec41ae9271a9d546627ad4
4
- data.tar.gz: c2f8d9d7c42f3692706cc8ac1869415b67f4e119
3
+ metadata.gz: 90cd0e6143e23778999bcd0f806af2a656be3d65
4
+ data.tar.gz: fe97b20123b3c551f633b44f3ada91bd7069f5e4
5
5
  SHA512:
6
- metadata.gz: d4e4e2b6a17ba4db617876dbbf3b881005fbfd23c4c090058ddae1318394b18af39b16a959b9c1c44a0022643b66652d3ed20399c571041ee557bc650c7ffe17
7
- data.tar.gz: 984bfa740b097985edefff7bda6c54cef4255a29e21e24c21fc3b9d04a865ff3b075dbb5657ef276abb30e658edd9fb8f4650f7f3540c70a0cbf950f6d66435d
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?
@@ -1,3 +1,3 @@
1
1
  module MongoidForums
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.6.1"
3
3
  end
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-23 00:00:00.000000000 Z
12
+ date: 2015-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails