From 29ae6d5e63f720d4c38199f83b95ce076b35b073 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 16 Aug 2016 11:57:52 +0000 Subject: [PATCH] just writing the same code better --- app/controllers/maps_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/maps_controller.rb b/app/controllers/maps_controller.rb index c5043cd1..3a12cd3b 100644 --- a/app/controllers/maps_controller.rb +++ b/app/controllers/maps_controller.rb @@ -88,8 +88,8 @@ class MapsController < ApplicationController # GET maps/new def new - @map = Map.new(:name => "Untitled Map", :permission => "public", :arranged => true) - authorize @map, :create? + @map = Map.new(name: "Untitled Map", permission: "public", arranged: true) + authorize @map respond_to do |format| format.html do