diff options
| author | Teddy Wing | 2017-07-06 16:41:41 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-07-07 12:58:11 +0200 |
| commit | d4463529108442b6fc063901e96fc093435b7211 (patch) | |
| tree | 3dd83a3d0a56b6b26063ce2cdfdbd8dc53e87dd0 /app/controllers | |
| parent | ed027aa2fbb3510be6729c7d8bc41ae77a3a1b66 (diff) | |
| download | chouette-core-d4463529108442b6fc063901e96fc093435b7211.tar.bz2 | |
Calendars#index: Use new table builder helper
Refs #3479
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/calendars_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb index 23af4129b..66eb3f963 100644 --- a/app/controllers/calendars_controller.rb +++ b/app/controllers/calendars_controller.rb @@ -5,6 +5,12 @@ class CalendarsController < BreadcrumbController respond_to :html respond_to :js, only: :index + def index + index! do + @calendars = ModelDecorator.decorate(@calendars, with: CalendarDecorator) + end + end + def show show! do @calendar = @calendar.decorate |
