Sha256: 86fc2317f8dc2b5da69a32238a61ea7929a58f0c659385d55b3f55988cf2c4d3
Contents?: true
Size: 350 Bytes
Versions: 8
Compression:
Stored size: 350 Bytes
Contents
module ActionController module Assertions module ModelAssertions # ensures that the passed record is valid by active record standards. returns the error messages if not def assert_valid(record) clean_backtrace do assert record.valid?, record.errors.full_messages.join("\n") end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems