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
|
@ -5,7 +5,7 @@ class NotesController < ApplicationController
|
|||
before_filter :add_project_abilities
|
||||
|
||||
before_filter :authorize_read_note!
|
||||
before_filter :authorize_write_note!, :only => [:create]
|
||||
before_filter :authorize_write_note!, only: [:create]
|
||||
|
||||
respond_to :js
|
||||
|
||||
|
@ -29,12 +29,12 @@ class NotesController < ApplicationController
|
|||
@note.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.js { render :nothing => true }
|
||||
format.js { render nothing: true }
|
||||
end
|
||||
end
|
||||
|
||||
def preview
|
||||
render :text => view_context.markdown(params[:note])
|
||||
render text: view_context.markdown(params[:note])
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue