Method: ClientValidation::Util.message_for
- Defined in:
- lib/client_validations/util.rb
.message_for(field_scope, key) ⇒ Object
3 4 5 6 7 |
# File 'lib/client_validations/util.rb', line 3 def self.(field_scope, key) field_name = I18n.translate(field_scope, {:scope => "activerecord.attributes"}) = I18n.translate(key, {:scope => 'activerecord.errors.messages'}) "#{field_name} #{}" end |