cartoonist-announcements 0.0.18 → 0.0.19
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bf53450b91da042ec523dc695f6f374778eb611
|
4
|
+
data.tar.gz: feb3e0646d3a65ad49838b8f1e4fb7f75bdc7e5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7446a8357a54d2650c7cc1c1a351a0250c8bf86a86497cc14f4855b8c9357a6ffc6d292577d8d5a5a54539467dbad0789a0d2806624d9c41c84e9acc47181b51
|
7
|
+
data.tar.gz: 733d29d5dbdeb15ed3dce344be709cb1df53c9e6501588f463c19c2a8b95dd0e36e8b0e9faf463b4754cfe6acc505c55f7ab311b16fbe7d3987eca7ad291b961
|
@@ -17,9 +17,9 @@ class Admin::AnnouncementsController < AdminCartoonistController
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def index
|
20
|
-
@unposted = Announcement.future.
|
21
|
-
@active = Announcement.active.
|
22
|
-
@expired = Announcement.expired.
|
20
|
+
@unposted = Announcement.future.to_a
|
21
|
+
@active = Announcement.active.to_a
|
22
|
+
@expired = Announcement.expired.to_a
|
23
23
|
end
|
24
24
|
|
25
25
|
def lock
|
data/app/models/announcement.rb
CHANGED
@@ -3,7 +3,6 @@ class Announcement < ActiveRecord::Base
|
|
3
3
|
include Postable
|
4
4
|
include Expirable
|
5
5
|
include Lockable
|
6
|
-
attr_accessible :posted_at, :expired_at, :title, :content, :location
|
7
6
|
validate :posted_at_must_be_before_expired_at, :posted_at_must_exist_if_expired_at_exists
|
8
7
|
|
9
8
|
def posted_at_must_be_before_expired_at
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartoonist-announcements
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Virata-Stone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cartoonist
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.0.
|
19
|
+
version: 0.0.19
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.0.
|
26
|
+
version: 0.0.19
|
27
27
|
description: This plugin for Cartoonist adds announcements for things like announcing
|
28
28
|
a new website.
|
29
29
|
email: reasonnumber@gmail.com
|