Sha256: 6f19e0d785e297c8f30d09e2d01b21170a5cbc9aeff833a566c28242ea702eb1

Contents?: true

Size: 184 Bytes

Versions: 29

Compression:

Stored size: 184 Bytes

Contents

class Translation < ActiveRecord::Base
  has_paper_trail :if     => Proc.new { |t| t.language_code == 'US' },
                  :unless => Proc.new { |t| t.type == 'DRAFT'       }
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
paper_trail-3.0.0.beta1 test/dummy/app/models/translation.rb
paper_trail-2.7.2 test/dummy/app/models/translation.rb
paper_trail-2.7.1 test/dummy/app/models/translation.rb
paper_trail-2.7.0 test/dummy/app/models/translation.rb
paper_trail-2.6.4 test/dummy/app/models/translation.rb
paper_trail-2.6.3 test/dummy/app/models/translation.rb
paper_trail-2.6.2 test/dummy/app/models/translation.rb
paper_trail-2.6.1 test/dummy/app/models/translation.rb
paper_trail-2.6.0 test/dummy/app/models/translation.rb