just writing the same code better
This commit is contained in:
parent
2c54d906fc
commit
29ae6d5e63
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue