aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/calendars_controller.rb
diff options
context:
space:
mode:
authorZog2018-03-15 16:38:20 +0100
committerJohan Van Ryseghem2018-03-27 09:35:09 +0200
commit1386e3c2d525b61bf0e6a7ace9ed755bff9eb998 (patch)
treeeaf06fcc8dcdaa308a6bb316b380f62b4887a34f /app/controllers/calendars_controller.rb
parent7e56064ec6dbb60d00453d39680c2fdd9a462011 (diff)
downloadchouette-core-1386e3c2d525b61bf0e6a7ace9ed755bff9eb998.tar.bz2
Refs #6201; Remove short_name from calendars
Diffstat (limited to 'app/controllers/calendars_controller.rb')
-rw-r--r--app/controllers/calendars_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb
index cc7570d65..3d88e4910 100644
--- a/app/controllers/calendars_controller.rb
+++ b/app/controllers/calendars_controller.rb
@@ -64,13 +64,13 @@ class CalendarsController < ChouetteController
end
def calendar_params
- permitted_params = [:id, :name, :short_name, :shared, periods_attributes: [:id, :begin, :end, :_destroy], date_values_attributes: [:id, :value, :_destroy]]
+ permitted_params = [:id, :name, :shared, periods_attributes: [:id, :begin, :end, :_destroy], date_values_attributes: [:id, :value, :_destroy]]
permitted_params << :shared if policy(Calendar).share?
params.require(:calendar).permit(*permitted_params)
end
def sort_column
- Calendar.column_names.include?(params[:sort]) ? params[:sort] : 'short_name'
+ Calendar.column_names.include?(params[:sort]) ? params[:sort] : 'name'
end
def sort_direction