Sha256: 2b6cafbf7cf664dbb0f3355cb7fc4951fcf26d879c76f13126c2923e5e456164

Contents?: true

Size: 220 Bytes

Versions: 5

Compression:

Stored size: 220 Bytes

Contents

class Employee::Collection < RecordCollection::Base
  attribute :section
  attribute :admin, type: Boolean
  attribute :vegan, type: Boolean
  validates :section, format: {with: /\A\w{3}\Z/, if: 'section.present?' }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
record_collection-0.4.2 spec/dummy/app/models/employee/collection.rb
record_collection-0.4.1 spec/dummy/app/models/employee/collection.rb
record_collection-0.4.0 spec/dummy/app/models/employee/collection.rb
record_collection-0.3.3 spec/dummy/app/models/employee/collection.rb
record_collection-0.3.2 spec/dummy/app/models/employee/collection.rb