Sha256: d7ac32318fd2b39c0367bb7a37d265ff66c13b1563f9bc78b1311fd526fe45ad
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true module SimpleForm::Bulma class Item include ActiveModel::Model include ActiveModel::Attributes attr_accessor :id, :name, :url, :secret_key, :description, :background, :serial_number, :quantity attribute :active, :boolean, default: true attribute :published_at, :datetime, default: -> { DateTime.current } attribute :expired_at, :date attribute :daily_check_at, :time validates :name, :url, presence: true validates :url, format: URI::DEFAULT_PARSER.make_regexp(%w[http https]) def self.all @all ||= [] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_form-bulma-0.1.0 | app/models/simple_form/bulma/item.rb |