Sha256: a38eef00e44f0c151afeead52d44da01bc514ac4a664d99dfeb30a7ddf07babf
Contents?: true
Size: 309 Bytes
Versions: 7
Compression:
Stored size: 309 Bytes
Contents
class ArticlesController < ApplicationController def create if PaperTrail.active_record_protected_attributes? @article = Article.create params[:article] else @article = Article.create params.require(:article).permit! end head :ok end def current_user 'foobar' end end
Version data entries
7 entries across 7 versions & 1 rubygems