diff 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
line wrap: on
line diff
--- a/app/controllers/pastes_controller.rb	Mon Sep 14 14:48:36 2015 +0900
+++ b/app/controllers/pastes_controller.rb	Mon Sep 14 14:50:35 2015 +0900
@@ -68,6 +68,6 @@
   end
 
   def paste_params
-    params.require(:paste).permit(:paste, :paste_gzip, :paste_gzip_base64, :is_private, :key)
+    params.require(:paste).permit(:paste, :paste_gzip, :paste_gzip_base64, :is_private, :key, :language)
   end
 end