mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Ruby: add missing example rails action
This commit is contained in:
@@ -9,6 +9,11 @@ class ArticlesController < ApplicationController
|
||||
article.destroy
|
||||
end
|
||||
|
||||
def change_title
|
||||
article.title = params[:article_title]
|
||||
article.save!
|
||||
end
|
||||
|
||||
def article
|
||||
@article ||= Article.find(params[:article_id])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user