Class: Naf::LoggerStyle
- Defined in:
- app/models/naf/logger_style.rb
Instance Method Summary collapse
-
#_logger_names ⇒ Object
————————- *** Instance Methods *** +++++++++++++++++++++++++.
- #check_logger_style_names_attributes ⇒ Object
- #logger_levels ⇒ Object
Methods inherited from NafBase
Instance Method Details
#_logger_names ⇒ Object
*** Instance Methods *** +++++++++++++++++++++++++
33 34 35 36 37 |
# File 'app/models/naf/logger_style.rb', line 33 def _logger_names logger_style_names.map do |lsn| lsn.logger_name.name end.join(', ') end |
#check_logger_style_names_attributes ⇒ Object
45 46 47 48 49 |
# File 'app/models/naf/logger_style.rb', line 45 def check_logger_style_names_attributes if logger_style_names.map{ |ln| ln.logger_name_id }.uniq! errors.add(:logger_name_id, "should be an uniqueness") end end |
#logger_levels ⇒ Object
39 40 41 42 43 |
# File 'app/models/naf/logger_style.rb', line 39 def logger_levels logger_style_names.map do |lsn| lsn.logger_level.level end.join(', ') end |