Sha256: 951991c6b45f695257614deeabe965a7d4eacfae342464352da5514f328a3c71

Contents?: true

Size: 437 Bytes

Versions: 23

Compression:

Stored size: 437 Bytes

Contents

module Naf
  class LoggerLevel < NafBase
    # Protect from mass-assignment issue
    attr_accessible :level

    #---------------------
    # *** Associations ***
    #+++++++++++++++++++++

    has_many :logger_style_names,
      class_name: '::Naf::LoggerStyleName'

    #--------------------
    # *** Validations ***
    #++++++++++++++++++++

    validates :level, uniqueness: true,
                      presence: true

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
naf-2.1.13 app/models/naf/logger_level.rb
naf-2.1.12 app/models/naf/logger_level.rb
naf-2.1.11 app/models/naf/logger_level.rb
naf-2.1.10 app/models/naf/logger_level.rb
naf-2.1.9 app/models/naf/logger_level.rb
naf-2.1.8 app/models/naf/logger_level.rb
naf-2.1.6 app/models/naf/logger_level.rb
naf-2.1.5 app/models/naf/logger_level.rb
naf-2.1.4 app/models/naf/logger_level.rb
naf-2.1.3 app/models/naf/logger_level.rb
naf-2.1.2 app/models/naf/logger_level.rb
naf-2.1.1 app/models/naf/logger_level.rb
naf-2.1.0 app/models/naf/logger_level.rb
naf-2.0.4 app/models/naf/logger_level.rb
naf-2.0.3 app/models/naf/logger_level.rb
naf-2.0.2 app/models/naf/logger_level.rb
naf-2.0.1 app/models/naf/logger_level.rb
naf-2.0.0 app/models/naf/logger_level.rb
naf-1.1.4 app/models/naf/logger_level.rb
naf-1.1.3 app/models/naf/logger_level.rb