From 1c646f41af6f954271f0841c8e6e63c3841282c1 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Wed, 18 Mar 2015 14:19:33 +0800 Subject: [PATCH] Fix tabs --- rails-models.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rails-models.md b/rails-models.md index 9f0773fb6..870311ecd 100644 --- a/rails-models.md +++ b/rails-models.md @@ -124,9 +124,9 @@ Validation class Person < ActiveRecord::Base -   validates :name, presence: true + validates :name, presence: true -   validates :terms, acceptance: true + validates :terms, acceptance: true validates :email, confirmation: true @@ -150,8 +150,8 @@ Validation validates :played, numericality: { only_integer: true } # Validate the associated records to ensure they're valid as well -   has_many :books -   validates_associated :books + has_many :books + validates_associated :books # Length (full enchalada) validates :content, length: {