effective_posts 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d24520205ad7c50a0c2b87db4f98973823d6ce0019121100552f5f6e9acb37ba
4
- data.tar.gz: b741010f991174f86dec40373f44d62e82c58112adf8bed342a7cb01e10a6826
3
+ metadata.gz: ca0ef37ecec36ad5e970fbf822f04bba0b3467a5e742bf9e58e50848ed245dee
4
+ data.tar.gz: 7161bb9f8b1fffd7cbdc371dca5d6f116b25fcbb50003ba23c424d0b9b6fe1ba
5
5
  SHA512:
6
- metadata.gz: 28729dbb2aea8030f3c558e986c2002de9c40b6b7566e40ab07a9d8f7b8c16c13aa29ffa815f2cf9c8843e44fa86c9be0ed69c54b637ba56e93a1f9121404298
7
- data.tar.gz: 1399466d936f9210462d3f07cdd7f49b994ad897be35ea34f32355bc04f151287e51425063dd5b4e14b84421886d41cda5c311f2588f2ecba501d14a5e2ee205
6
+ metadata.gz: 63c223415032de3e6e7ab000c9f5be639dcb2c449ca7ced5e0ef4a6474afc0562b63d3e9a29c3ddb57900804f0443a0c12bd55d70551d360db8ebfdbcb0b31bf
7
+ data.tar.gz: 8d858bd780ccb72acaf7c7c2f085590bab412e3f7bbb84133f9121c0015877c69317cebebb401103b3ab6306b42563bc7a1a9701c6c9704da2d2940a88af3f8c
@@ -60,7 +60,7 @@ module Admin
60
60
 
61
61
  authorize_effective_posts!
62
62
 
63
- if @post.update_attributes(post_params)
63
+ if @post.update(post_params)
64
64
  if params[:commit] == 'Save and Edit Content'
65
65
  redirect_to effective_regions.edit_path(effective_posts.post_path(@post), :exit => effective_posts.edit_admin_post_path(@post))
66
66
  elsif params[:commit] == 'Save and Add New'
@@ -107,7 +107,7 @@ module Admin
107
107
 
108
108
  authorize_effective_posts!
109
109
 
110
- if @post.update_attributes(draft: false)
110
+ if @post.update(draft: false)
111
111
  flash[:success] = 'Successfully approved post. It is now displayed on the website.'
112
112
  else
113
113
  flash[:danger] = "Unable to approve post: #{@post.errors.full_messages.join(', ')}"
@@ -83,7 +83,7 @@ module Effective
83
83
 
84
84
  EffectivePosts.authorized?(self, :update, @post)
85
85
 
86
- if @post.update_attributes(post_params)
86
+ if @post.update(post_params)
87
87
  @page_title ||= 'Post Submitted'
88
88
  flash.now[:success] = 'Successfully re-submitted post'
89
89
 
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '0.6.2'.freeze
2
+ VERSION = '0.6.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_posts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-02 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -188,7 +188,7 @@ homepage: https://github.com/code-and-effect/effective_posts
188
188
  licenses:
189
189
  - MIT
190
190
  metadata: {}
191
- post_install_message:
191
+ post_install_message:
192
192
  rdoc_options: []
193
193
  require_paths:
194
194
  - lib
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  version: '0'
205
205
  requirements: []
206
206
  rubygems_version: 3.1.2
207
- signing_key:
207
+ signing_key:
208
208
  specification_version: 4
209
209
  summary: A blog implementation with WYSIWYG content editing, post scheduling, pagination
210
210
  and optional top level routes for each post category.