search for: words_connector

Displaying 1 result from an estimated 1 matches for "words_connector".

2011 Sep 01
2
Custom ActiveRecord Error Message
...ding "model class: #{record.class}" to the :errors hash value), but I dont think this is a clean solution. module ActiveRecord class RecordInvalid def initialize(record) @record = record errors = @record.errors.full_messages.join( I18n.t(''support.array.words_connector'', :default => '', '') ) super(I18n.t(''activerecord.errors.messages.record_invalid'', :errors => "model class: #{record.class}: #{errors}")) end end end -- Posted via http://www.ruby-forum.com/. -- You receiv...