summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-02-20 17:13:51 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-02-20 17:13:51 -0500
commitcd1fabe40ca4d290df33a2590f3a1f2072103972 (patch)
tree98afd236e1d14e892602304e739fc65d450a43fd /app/controllers
parentc14d0327a631a4321464c7c1e250d75458e13f49 (diff)
fix datatype names in generate.sh
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/alerts_controller.rb2
-rw-r--r--app/controllers/matches_controller.rb2
-rw-r--r--app/controllers/pms_controller.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/alerts_controller.rb b/app/controllers/alerts_controller.rb
index e6158f4..873e9b7 100644
--- a/app/controllers/alerts_controller.rb
+++ b/app/controllers/alerts_controller.rb
@@ -69,6 +69,6 @@ class AlertsController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def alert_params
- params.require(:alert).permit(:author, :message)
+ params.require(:alert).permit(:author_id, :message)
end
end
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb
index bb2a67a..e9f3c5a 100644
--- a/app/controllers/matches_controller.rb
+++ b/app/controllers/matches_controller.rb
@@ -69,6 +69,6 @@ class MatchesController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def match_params
- params.require(:match).permit(:tournament)
+ params.require(:match).permit(:tournament_id)
end
end
diff --git a/app/controllers/pms_controller.rb b/app/controllers/pms_controller.rb
index 6eb94f9..5dd0d69 100644
--- a/app/controllers/pms_controller.rb
+++ b/app/controllers/pms_controller.rb
@@ -69,6 +69,6 @@ class PmsController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def pm_params
- params.require(:pm).permit(:author, :recipient, :message)
+ params.require(:pm).permit(:author_id, :recipient_id, :message)
end
end