Class: MissingText::Warning
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- MissingText::Warning
- Defined in:
- app/models/missing_text/warning.rb
Constant Summary collapse
- STRICT_REGEX =
have the types saved in the db, and have all types point to their specific error messages for displaying
"strict_regex"
- YAML_PARSE =
"yaml_parse"
- RB_PARSE =
"rb_parse"
- FILE_TYPE_ERROR =
"file_type"
- MESSAGES =
{ "strict_regex" => "strict_regex_msg", "yaml_parse" => "yaml_parsing_error", "rb_parse" => "rb_parsing_error", "file_type" => "filetype_error" }
Instance Method Summary collapse
Instance Method Details
#message ⇒ Object
20 21 22 |
# File 'app/models/missing_text/warning.rb', line 20 def self.send(MESSAGES[self.warning_type]) end |