Class: Cloudpress::Drafts::PostsController

Inherits:
PostsController show all
Defined in:
app/controllers/cloudpress/drafts/posts_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
# File 'app/controllers/cloudpress/drafts/posts_controller.rb', line 6

def index
  super
  flash[:notice] = "Currently viewing draft index, move to the live folder to publish"
end

#showObject



11
12
13
14
# File 'app/controllers/cloudpress/drafts/posts_controller.rb', line 11

def show
  super
  flash[:notice] = "This post is currently a draft, move to the live folder to publish"
end