Sha256: 05298c889253577dca7d02c9df3c220b359eaf6c399f690b61666f7c14ce117d
Contents?: true
Size: 311 Bytes
Versions: 3
Compression:
Stored size: 311 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems