Sha256: 827bed62a5eb1ba74b0581aa6806f0b227c95a30c5a174be56706991a647353d

Contents?: true

Size: 272 Bytes

Versions: 1

Compression:

Stored size: 272 Bytes

Contents

# Demonstrates a "custom versions association name". Instead of the assication
# being named `versions`, it will be named `paper_trail_versions`.
class Document < ActiveRecord::Base
  has_paper_trail(
    versions: :paper_trail_versions,
    on: %i[create update]
  )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paper_trail-7.1.0 spec/dummy_app/app/models/document.rb