Sha256: 0f2932ea59c78950e484d1923dbe635bcdc54a1a1efac1c957d9b2fe544b8de3

Contents?: true

Size: 244 Bytes

Versions: 6

Compression:

Stored size: 244 Bytes

Contents

class Widget < ActiveRecord::Base
  EXCLUDED_NAME = "Biglet".freeze
  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

6 entries across 6 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paper_trail-7.0.2/test/dummy/app/models/widget.rb
paper_trail-7.0.2 test/dummy/app/models/widget.rb
paper_trail-7.0.1 test/dummy/app/models/widget.rb
paper_trail-7.0.0 test/dummy/app/models/widget.rb
paper_trail-6.0.2 test/dummy/app/models/widget.rb
paper_trail-6.0.1 test/dummy/app/models/widget.rb