homesteading_post 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/homesteading/post.rb +2 -1
- data/lib/homesteading_post/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: 5b59216a66d272c32a6fd030bf970d4244a7619b
|
4
|
+
data.tar.gz: 379e651bf651839e07210a85270e682fa8fd721d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00e018bad493b3f1490f5a1dff295e56ee807793117cc44eceb681ed306a315d76230c219cc9e33367a9a66e5b5c7e3a1e130e8026a4b9af927486aa68e1c1c4
|
7
|
+
data.tar.gz: 1e5c7f3004c449b2df3d9471381ccff7c1576b6a08befdb53549cf2773a986c99b31c5e55cdb8b0f71e19e9dd985603e44aba1b87af027ac0fb446aa97f24aa4
|
@@ -1,5 +1,6 @@
|
|
1
1
|
module Homesteading
|
2
2
|
class Post < ActiveRecord::Base
|
3
|
+
|
3
4
|
default_scope { order("published_at desc") }
|
4
5
|
|
5
6
|
validates :published_at, :year, :month, :day, :hour, :minute, :second, :slug,
|
@@ -25,7 +26,7 @@ module Homesteading
|
|
25
26
|
end
|
26
27
|
|
27
28
|
def name
|
28
|
-
|
29
|
+
[title, subtitle].compact.join(" : ")
|
29
30
|
end
|
30
31
|
|
31
32
|
private
|