Sha256: d46880d3ae8ee80bb92d993427ad865c1c82da218e957e5fd9e43b1738ca4b43

Contents?: true

Size: 497 Bytes

Versions: 23

Compression:

Stored size: 497 Bytes

Contents

module Naf
  class LoggerName < NafBase
    # Protect from mass-assignment issue
    attr_accessible :name

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

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

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

    validates :name, 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_name.rb
naf-2.1.12 app/models/naf/logger_name.rb
naf-2.1.11 app/models/naf/logger_name.rb
naf-2.1.10 app/models/naf/logger_name.rb
naf-2.1.9 app/models/naf/logger_name.rb
naf-2.1.8 app/models/naf/logger_name.rb
naf-2.1.6 app/models/naf/logger_name.rb
naf-2.1.5 app/models/naf/logger_name.rb
naf-2.1.4 app/models/naf/logger_name.rb
naf-2.1.3 app/models/naf/logger_name.rb
naf-2.1.2 app/models/naf/logger_name.rb
naf-2.1.1 app/models/naf/logger_name.rb
naf-2.1.0 app/models/naf/logger_name.rb
naf-2.0.4 app/models/naf/logger_name.rb
naf-2.0.3 app/models/naf/logger_name.rb
naf-2.0.2 app/models/naf/logger_name.rb
naf-2.0.1 app/models/naf/logger_name.rb
naf-2.0.0 app/models/naf/logger_name.rb
naf-1.1.4 app/models/naf/logger_name.rb
naf-1.1.3 app/models/naf/logger_name.rb