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.62 app/models/comee/core/store.rb
comee_core-0.3.61 app/models/comee/core/store.rb
comee_core-0.3.60 app/models/comee/core/store.rb
comee_core-0.3.59 app/models/comee/core/store.rb
comee_core-0.3.58 app/models/comee/core/store.rb
comee_core-0.3.57 app/models/comee/core/store.rb
comee_core-0.3.56 app/models/comee/core/store.rb
comee_core-0.3.55 app/models/comee/core/store.rb
comee_core-0.3.54 app/models/comee/core/store.rb
comee_core-0.3.53 app/models/comee/core/store.rb
comee_core-0.3.51 app/models/comee/core/store.rb
comee_core-0.3.50 app/models/comee/core/store.rb
comee_core-0.3.49 app/models/comee/core/store.rb
comee_core-0.3.48 app/models/comee/core/store.rb
comee_core-0.3.47 app/models/comee/core/store.rb
comee_core-0.3.46 app/models/comee/core/store.rb
comee_core-0.3.45 app/models/comee/core/store.rb
comee_core-0.3.44 app/models/comee/core/store.rb
comee_core-0.3.43 app/models/comee/core/store.rb
comee_core-0.3.42 app/models/comee/core/store.rb