From b605a6ac9e59feee8cc1dc8ea2a9ea5a3042ac50 Mon Sep 17 00:00:00 2001 From: Tekin Suleyman Date: Tue, 2 Aug 2016 11:24:09 +0100 Subject: Correct usage for acceptance validator in guide --- guides/source/active_record_validations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index 2737237c1a..665e97c470 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -290,7 +290,7 @@ You can also pass custom message via the `message` option. ```ruby class Person < ApplicationRecord - validates :terms_of_service, acceptance: true, message: 'must be abided' + validates :terms_of_service, acceptance: { message: 'must be abided' } end ``` -- cgit v1.2.3