Sha256: cc02e98923d19c526863d016a3d40dcbbe2e9e0d78dc9d0803627a6f901d42b0
Contents?: true
Size: 270 Bytes
Versions: 4
Compression:
Stored size: 270 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 end
Version data entries
4 entries across 4 versions & 1 rubygems