Mercurial > zeropaste
comparison app/controllers/pastes_controller.rb @ 417:080dd141898c
Add support for explicit highlighter languages
author | nanaya <me@myconan.net> |
---|---|
date | Mon, 14 Sep 2015 14:50:35 +0900 |
parents | e84276bf344a |
children | f11862e58af4 |
comparison
equal
deleted
inserted
replaced
416:c4c8214fb0b2 | 417:080dd141898c |
---|---|
66 | 66 |
67 redirect_to correct_path, :status => :moved_permanently | 67 redirect_to correct_path, :status => :moved_permanently |
68 end | 68 end |
69 | 69 |
70 def paste_params | 70 def paste_params |
71 params.require(:paste).permit(:paste, :paste_gzip, :paste_gzip_base64, :is_private, :key) | 71 params.require(:paste).permit(:paste, :paste_gzip, :paste_gzip_base64, :is_private, :key, :language) |
72 end | 72 end |
73 end | 73 end |