Sha256: 75028f47aeb067671566f47ac6f73f82ec553a72c0047cda3386c6a70549306d
Contents?: true
Size: 341 Bytes
Versions: 10
Compression:
Stored size: 341 Bytes
Contents
class ArticlesController < ApplicationController def create @article = Article.create article_params head :ok end def current_user "foobar" end private def article_params if PaperTrail.active_record_protected_attributes? params[:article] else params.require(:article).permit! end end end
Version data entries
10 entries across 10 versions & 2 rubygems