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 MilestonesController < ApplicationController
|
|||
before_filter :authenticate_user!
|
||||
before_filter :project
|
||||
before_filter :module_enabled
|
||||
before_filter :milestone, :only => [:edit, :update, :destroy, :show]
|
||||
before_filter :milestone, only: [:edit, :update, :destroy, :show]
|
||||
layout "project"
|
||||
|
||||
# Authorize
|
||||
|
@ -12,7 +12,7 @@ class MilestonesController < ApplicationController
|
|||
before_filter :authorize_read_milestone!
|
||||
|
||||
# Allow admin milestone
|
||||
before_filter :authorize_admin_milestone!, :except => [:index, :show]
|
||||
before_filter :authorize_admin_milestone!, except: [:index, :show]
|
||||
|
||||
respond_to :html
|
||||
|
||||
|
@ -77,7 +77,7 @@ class MilestonesController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to project_milestones_path }
|
||||
format.js { render :nothing => true }
|
||||
format.js { render nothing: true }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue