Sha256: 6f2b8566a9fa25024c02d848b19e2749439f2e9d8f228cbd9e1bd03dd172c5f4

Contents?: true

Size: 224 Bytes

Versions: 4

Compression:

Stored size: 224 Bytes

Contents

class Wand < ApplicationRecord

  enum core_type: {
    phoenix_feather: 0,
    dragon_heartstring: 1,
    unicorn_tail_hair: 2,
    basilisk_horn: 3,
  }

  belongs_to :wizard

  def wood_type
    'Type ' + super
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sorbet-rails-0.4.0 spec/support/rails_shared/app/models/wand.rb
sorbet-rails-0.3.0 spec/support/rails_shared/app/models/wand.rb
sorbet-rails-0.2.0 spec/support/rails_shared/app/models/wand.rb
sorbet-rails-0.1.3 spec/support/rails_app/app/models/wand.rb