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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b8709251c82acb1bc17445e64b7d6ac54fb4b87
4
- data.tar.gz: d6d8ccf7202bd05d40d8312265a82cc0e4867d79
3
+ metadata.gz: a0cab742d92b01742395d5871d47d8398955808e
4
+ data.tar.gz: bf0d26461c9c8f4dd6c82fde6013b40a7164a170
5
5
  SHA512:
6
- metadata.gz: 90ed8de9874f2145c3639afe3080d278cf27643a4bb9b10387adf2e63d3952b3a4211cf00d87b2ee7d9b7c3835a90de55c0543fc4656f14df4b15a3accdbd0b4
7
- data.tar.gz: dc6a5e731021e5e57aad14ddf26c635650bd21f603494a566ceb144c165da9e7a2aacc6e1ed77418ed4da24165744bf575d388842423368024795eb6389c63d8
6
+ metadata.gz: 64776df8a1590ad5886bb0cb3e76390d63fb3660cc79cbacd4e89e30bb9415f8359e7f81394b753bfdea24314f6f48b24ba0b6a570497b02371f5edbd954dc8d
7
+ data.tar.gz: 51184bfa72a582bfa839233efe81feed99e63945173001502d4e4bee8c602be48bd35f29c6bb43fbc18aacaee1ef1d266b81883fb05eb648c55d131d1c23e7f9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.5.0)
4
+ rocket_cms (0.5.1)
5
5
  addressable
6
6
  coffee-rails
7
7
  devise
@@ -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: :image?
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
- redirect_to :contacts_sent
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
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler