Fully embrace Ruby 1.9 hash syntax
Didn't bother with files in db/, config/, or features/
This commit is contained in:
parent
1413c23c50
commit
7754189187
257 changed files with 1449 additions and 1449 deletions
|
@ -2,7 +2,7 @@ class Admin::ProjectsController < ApplicationController
|
|||
layout "admin"
|
||||
before_filter :authenticate_user!
|
||||
before_filter :authenticate_admin!
|
||||
before_filter :admin_project, :only => [:edit, :show, :update, :destroy, :team_update]
|
||||
before_filter :admin_project, only: [:edit, :show, :update, :destroy, :team_update]
|
||||
|
||||
def index
|
||||
@admin_projects = Project.scoped
|
||||
|
@ -36,7 +36,7 @@ class Admin::ProjectsController < ApplicationController
|
|||
if @admin_project.save
|
||||
redirect_to [:admin, @admin_project], notice: 'Project was successfully created.'
|
||||
else
|
||||
render :action => "new"
|
||||
render action: "new"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -50,7 +50,7 @@ class Admin::ProjectsController < ApplicationController
|
|||
if @admin_project.update_attributes(params[:project])
|
||||
redirect_to [:admin, @admin_project], notice: 'Project was successfully updated.'
|
||||
else
|
||||
render :action => "edit"
|
||||
render action: "edit"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ class Admin::UsersController < ApplicationController
|
|||
|
||||
|
||||
def new
|
||||
@admin_user = User.new(:projects_limit => Gitlab.config.default_projects_limit)
|
||||
@admin_user = User.new(projects_limit: Gitlab.config.default_projects_limit)
|
||||
end
|
||||
|
||||
def edit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue