Sha256: f9f8171611da52fc51941dd21d522c10881b817eb842e97170d5766072a98f98

Contents?: true

Size: 435 Bytes

Versions: 65

Compression:

Stored size: 435 Bytes

Contents

module Comee
  module Core
    class Store < ApplicationRecord
      belongs_to :warehouse_manager, class_name: "Comee::Core::User", optional: true

      validates :name, :address, :email, :code, presence: true
      validates :email, format: {with: URI::MailTo::EMAIL_REGEXP}

      def self.ransackable_attributes(_auth_object = nil)
        %w[address code created_at email id id_value name updated_at]
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
comee_core-0.3.1 app/models/comee/core/store.rb
comee_core-0.3.0 app/models/comee/core/store.rb
comee_core-0.2.99 app/models/comee/core/store.rb
comee_core-0.2.98 app/models/comee/core/store.rb
comee_core-0.2.97 app/models/comee/core/store.rb