Sha256: f10b120ec3f1ed4adfff990c48548d95e5bcebd69c41c995137b0b2451df6f0f
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
class Pulitzer::VersionsController < Pulitzer::ApplicationController before_action :set_version def update Pulitzer::UpdateVersionStatus.new(@version,@status).call redirect_to post_content_elements_path(@post), notice: "Post #{@status}" end private def set_version @version = Pulitzer::Version.find params[:id] @post = @version.post @status = params[:status].to_sym end end
Version data entries
3 entries across 3 versions & 1 rubygems