Sha256: 1181287d4aa918fcf57bc0f79e9cf20838c5ba24fc80857ad81cf9c7e224f1c7

Contents?: true

Size: 269 Bytes

Versions: 12

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

class Widget < ActiveRecord::Base
  EXCLUDED_NAME = 'Biglet'
  has_paper_trail
  has_one :wotsit
  has_many(:fluxors, -> { order(:name) })
  has_many :whatchamajiggers, as: :owner
  validates :name, exclusion: { in: [EXCLUDED_NAME] }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
paper_trail_scrapbook-0.2.0 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.21 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.20 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.19 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.18 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.17 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.16 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.15 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.13 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.12 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.11 spec/dummy_app/app/models/widget.rb
paper_trail_scrapbook-0.1.10 spec/dummy_app/app/models/widget.rb