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

Version Path
paper_trail-3.0.9 test/dummy/app/controllers/articles_controller.rb
paper_trail-3.0.8 test/dummy/app/controllers/articles_controller.rb
paper_trail-3.0.7 test/dummy/app/controllers/articles_controller.rb
paper_trail-4.0.0.beta1 test/dummy/app/controllers/articles_controller.rb
paper_trail-3.0.6 test/dummy/app/controllers/articles_controller.rb
paper_trail-3.0.5 test/dummy/app/controllers/articles_controller.rb
paper_trail-3.0.2 test/dummy/app/controllers/articles_controller.rb