Sha256: 58c4589d36a4926af8313afd07c5c8548f79b1fc9d3503e5b0a53c3b662bce91

Contents?: true

Size: 436 Bytes

Versions: 89

Compression:

Stored size: 436 Bytes

Contents

module Comee
  module Core
    class Lookup < ApplicationRecord
      validates :code, :name, :lookup_type, presence: true
      validates :code, uniqueness: {scope: :lookup_type}

      def self.ransackable_attributes(_auth_object = nil)
        %w[
          id
          code
          name
          lookup_type
        ]
      end

      def self.ransackable_associations(_auth_object = nil)
        []
      end
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
comee_core-0.3.62 app/models/comee/core/lookup.rb
comee_core-0.3.61 app/models/comee/core/lookup.rb
comee_core-0.3.60 app/models/comee/core/lookup.rb
comee_core-0.3.59 app/models/comee/core/lookup.rb
comee_core-0.3.58 app/models/comee/core/lookup.rb
comee_core-0.3.57 app/models/comee/core/lookup.rb
comee_core-0.3.56 app/models/comee/core/lookup.rb
comee_core-0.3.55 app/models/comee/core/lookup.rb
comee_core-0.3.54 app/models/comee/core/lookup.rb
comee_core-0.3.53 app/models/comee/core/lookup.rb
comee_core-0.3.51 app/models/comee/core/lookup.rb
comee_core-0.3.50 app/models/comee/core/lookup.rb
comee_core-0.3.49 app/models/comee/core/lookup.rb
comee_core-0.3.48 app/models/comee/core/lookup.rb
comee_core-0.3.47 app/models/comee/core/lookup.rb
comee_core-0.3.46 app/models/comee/core/lookup.rb
comee_core-0.3.45 app/models/comee/core/lookup.rb
comee_core-0.3.44 app/models/comee/core/lookup.rb
comee_core-0.3.43 app/models/comee/core/lookup.rb
comee_core-0.3.42 app/models/comee/core/lookup.rb