* Added missing specs * Removed models that were refactored previously * Added simplecov when executing specs locally * Fixed bug in poll model validation that was causing an 500 error.
17 lines
342 B
Ruby
17 lines
342 B
Ruby
class Dashboard::PosterController < Dashboard::BaseController
|
|
def index
|
|
authorize! :manage_poster, proposal
|
|
|
|
respond_to do |format|
|
|
format.html
|
|
format.pdf do
|
|
render pdf: 'poster', page_size: 'A3', show_as_html: Rails.env.test?
|
|
end
|
|
end
|
|
end
|
|
|
|
def new
|
|
authorize! :manage_poster, proposal
|
|
end
|
|
end
|