rocket_cms 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/models/concerns/seoable.rb +1 -1
- data/lib/rocket_cms/controllers/contacts.rb +5 -1
- data/lib/rocket_cms/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: a0cab742d92b01742395d5871d47d8398955808e
|
4
|
+
data.tar.gz: bf0d26461c9c8f4dd6c82fde6013b40a7164a170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64776df8a1590ad5886bb0cb3e76390d63fb3660cc79cbacd4e89e30bb9415f8359e7f81394b753bfdea24314f6f48b24ba0b6a570497b02371f5edbd954dc8d
|
7
|
+
data.tar.gz: 51184bfa72a582bfa839233efe81feed99e63945173001502d4e4bee8c602be48bd35f29c6bb43fbc18aacaee1ef1d266b81883fb05eb648c55d131d1c23e7f9
|
data/Gemfile.lock
CHANGED
@@ -19,7 +19,7 @@ module Seoable
|
|
19
19
|
elsif RocketCMS.active_record?
|
20
20
|
has_attached_file :og_image, styles: {thumb: "800x600>"}
|
21
21
|
end
|
22
|
-
validates_attachment_content_type :og_image, content_type: %w(image/gif image/jpeg image/jpg image/png), if: :
|
22
|
+
validates_attachment_content_type :og_image, content_type: %w(image/gif image/jpeg image/jpg image/png), if: :og_image?
|
23
23
|
end
|
24
24
|
|
25
25
|
def page_title
|
@@ -17,7 +17,7 @@ module RocketCMS
|
|
17
17
|
end
|
18
18
|
if @contact_message.send(meth)
|
19
19
|
after_create
|
20
|
-
|
20
|
+
redirect_after_done
|
21
21
|
else
|
22
22
|
flash.now[:alert] = @contact_message.errors.full_messages.join("\n")
|
23
23
|
render action: "new"
|
@@ -28,6 +28,10 @@ module RocketCMS
|
|
28
28
|
end
|
29
29
|
|
30
30
|
private
|
31
|
+
|
32
|
+
def redirect_after_done
|
33
|
+
redirect_to :contacts_sent
|
34
|
+
end
|
31
35
|
def after_initialize
|
32
36
|
# overrideable hook for updating message
|
33
37
|
end
|
data/lib/rocket_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocket_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|