Sha256: 00616b23f1334b05e8b90f4bd243c11259e721609c7911bb5b7107b014c447fd
Contents?: true
Size: 726 Bytes
Versions: 23
Compression:
Stored size: 726 Bytes
Contents
module Naf class LoggerStyleName < NafBase # Protect from mass-assignment issue attr_accessible :logger_style_id, :logger_name_id, :logger_level_id #--------------------- # *** Associations *** #+++++++++++++++++++++ belongs_to :logger_name, class_name: '::Naf::LoggerName' belongs_to :logger_style, class_name: '::Naf::LoggerStyle' belongs_to :logger_level, class_name: '::Naf::LoggerLevel' #-------------------- # *** Validations *** #++++++++++++++++++++ validates :logger_name_id, :logger_style_id, presence: true validates :logger_style_id, uniqueness: { scope: :logger_name_id } end end
Version data entries
23 entries across 23 versions & 1 rubygems