aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2014-05-11 14:09:19 +0200
committerAlex Legler <alex@a3li.li>2014-05-11 14:09:19 +0200
commitc6fd7d55431d5439f4df86f0b4d9a8da22976af0 (patch)
tree9bcf5bd96ca789c37d0bc0e4e443a5975f76ceda
parentTemplates fix for rails 4 (diff)
downloadglsamaker-c6fd7d55431d5439f4df86f0b4d9a8da22976af0.tar.gz
glsamaker-c6fd7d55431d5439f4df86f0b4d9a8da22976af0.tar.bz2
glsamaker-c6fd7d55431d5439f4df86f0b4d9a8da22976af0.zip
Another stab at that
-rw-r--r--app/controllers/admin/templates_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/templates_controller.rb b/app/controllers/admin/templates_controller.rb
index 04b9c8d..1e5de16 100644
--- a/app/controllers/admin/templates_controller.rb
+++ b/app/controllers/admin/templates_controller.rb
@@ -42,7 +42,7 @@ class Admin::TemplatesController < ApplicationController
# POST /admin/templates
# POST /admin/templates.json
def create
- @template = Template.new(params[:template]).permit(:name, :text, :target, :enabled)
+ @template = Template.new(params[:template].permit(:name, :text, :target, :enabled))
respond_to do |format|
if @template.save