Sha256: 50e5b85aa33b81511cf0546016802a4bd4b724b170df0e0925aca243a2ad197c
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
class Color < ApplicationRecord #attr_accessible :code, :property belongs_to :library_group validates :code, presence: true, format: /\A[A-Fa-f0-9]{6}\Z/ validates :property, presence: true, uniqueness: true, format: /\A[a-z][0-9a-z_]*[0-9a-z]\Z/ acts_as_list end # == Schema Information # # Table name: colors # # id :bigint not null, primary key # library_group_id :bigint # property :string # code :string # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_library-0.4.0.rc.1 | app/models/color.rb |