just writing the same code better

This commit is contained in:
Connor Turland 2016-08-16 11:57:52 +00:00
parent 2c54d906fc
commit 29ae6d5e63

View file

@ -88,8 +88,8 @@ class MapsController < ApplicationController
# GET maps/new # GET maps/new
def new def new
@map = Map.new(:name => "Untitled Map", :permission => "public", :arranged => true) @map = Map.new(name: "Untitled Map", permission: "public", arranged: true)
authorize @map, :create? authorize @map
respond_to do |format| respond_to do |format|
format.html do format.html do