Sha256: 8799e0d88e39d4522133ea061bf9a5b64ac077842f533e8751cdd1be7e2fa94b

Contents?: true

Size: 171 Bytes

Versions: 8

Compression:

Stored size: 171 Bytes

Contents

class Cat < ActiveRecord::Base
  self.abstract_class = true

  enum gender: [:female, :male]

  default_scope -> { where(is_vegetarian: false) }
end

class Lion < Cat
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0 test/models/cat.rb
ibm_db-5.1.0 test/models/cat.rb
ibm_db-5.0.5 test/models/cat.rb
ibm_db-5.0.4 test/models/cat.rb
ibm_db-5.0.3 test/models/cat.rb
ibm_db-5.0.2 test/models/cat.rb
ibm_db-4.0.0-x86-mingw32 test/models/cat.rb
ibm_db-4.0.0 test/models/cat.rb