Class: TestingNotesController
Instance Method Summary
collapse
#after_sign_in_path_for, #api_authenticate!, #current_project, #expire_revision!, #followed_projects, #no_cache, #read_revision, #require_login, #return_or_cache_revision!, #revision, #save_current_project, #set_current_project, #unfurling?
Methods included from UrlHelper
#edit_release_path, #edit_release_url, #feature_path, #github_commit_range_url, #github_commit_url, #github_project_url, #github_url?, #goldmine_case_number_url, #link_to_project_feature, #new_release_url, #release_path, #release_url, #releases_path
Instance Method Details
#create ⇒ Object
7
8
9
10
11
12
13
|
# File 'app/controllers/testing_notes_controller.rb', line 7
def create
@testing_note = current_user.testing_notes.build(params[:testing_note].merge(project: @ticket.project))
authorize! :create, @testing_note
@testing_note.save
render_testing_note
end
|
#destroy ⇒ Object
24
25
26
27
28
29
|
# File 'app/controllers/testing_notes_controller.rb', line 24
def destroy
authorize! :destroy, @testing_note
@testing_note.destroy
head 204
end
|
#update ⇒ Object
16
17
18
19
20
21
|
# File 'app/controllers/testing_notes_controller.rb', line 16
def update
authorize! :update, @testing_note
@testing_note.update_attributes(params[:testing_note])
render_testing_note
end
|