Sha256: c107531ae7e1637d7c07b85a183af8059ffe6aa59058fbf024a0d3e4c65152e8

Contents?: true

Size: 519 Bytes

Versions: 19

Compression:

Stored size: 519 Bytes

Contents

class RequestStatusType < ActiveRecord::Base
  include MasterModel
  validates :name, presence: true, format: { with: /\A[0-9A-Za-z][0-9A-Za-z_\-\s,]*[0-9a-z]\Z/ }
  has_many :reserves

  private
  def valid_name?
    true
  end
end

# == Schema Information
#
# Table name: request_status_types
#
#  id           :integer          not null, primary key
#  name         :string           not null
#  display_name :text
#  note         :text
#  position     :integer
#  created_at   :datetime
#  updated_at   :datetime
#

Version data entries

19 entries across 17 versions & 2 rubygems

Version Path
enju_library-0.2.5 app/models/request_status_type.rb
enju_library-0.2.4 app/models/request_status_type.rb
enju_library-0.2.3 app/models/request_status_type.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/app/models/request_status_type.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/app/models/request_status_type.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/app/models/request_status_type.rb
enju_library-0.2.2 app/models/request_status_type.rb
enju_library-0.2.1 app/models/request_status_type.rb
enju_library-0.2.0 app/models/request_status_type.rb
enju_library-0.2.0.beta.10 app/models/request_status_type.rb
enju_library-0.2.0.beta.9 app/models/request_status_type.rb
enju_library-0.2.0.beta.8 app/models/request_status_type.rb
enju_library-0.2.0.beta.7 app/models/request_status_type.rb
enju_library-0.2.0.beta.6 app/models/request_status_type.rb
enju_library-0.2.0.beta.5 app/models/request_status_type.rb
enju_library-0.2.0.beta.4 app/models/request_status_type.rb
enju_library-0.2.0.beta.3 app/models/request_status_type.rb
enju_library-0.2.0.beta.2 app/models/request_status_type.rb
enju_library-0.2.0.beta.1 app/models/request_status_type.rb