Module: Cms::Extensions::ActiveModel::Errors
- Defined in:
- lib/cms/extensions/active_record/errors.rb
Instance Method Summary collapse
Instance Method Details
#add_from_hash(errors) ⇒ Object
5 6 7 |
# File 'lib/cms/extensions/active_record/errors.rb', line 5 def add_from_hash(errors) errors.each{|k,v| add(k, v) } unless errors.blank? end |