f58a1aeb31
Mobile team needs this. Also, this lets us get rid from some conditionals for handling both modes with a single template. https://3.basecamp.com/2914079/buckets/44843469/messages/9437287330
14 lines
232 B
Ruby
14 lines
232 B
Ruby
class Cards::DraftsController < ApplicationController
|
|
include CardScoped
|
|
|
|
before_action :redirect_if_published
|
|
|
|
def show
|
|
end
|
|
|
|
private
|
|
def redirect_if_published
|
|
redirect_to @card unless @card.drafted?
|
|
end
|
|
end
|