app/controllers/miniblog/admin/states_controller.rb in miniblog-1.0.0.beta vs app/controllers/miniblog/admin/states_controller.rb in miniblog-1.0.0

- old
+ new

@@ -1,11 +1,13 @@ class Miniblog::Admin::StatesController < Miniblog::Admin::BaseController def update @post = Miniblog::Post.find(params[:post_id]) if @post.published? @post.draft + after_post_is_saved else @post.publish + after_post_is_saved end redirect_to admin_posts_path end end