From 4fd571abe297fcb30adba8c77f26e1ff3177128c Mon Sep 17 00:00:00 2001 From: Santosh Wadghule Date: Wed, 18 Mar 2015 14:30:05 +0530 Subject: [PATCH] - Make example code consistent for better understanding. [ci skip] --- guides/source/active_record_basics.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/guides/source/active_record_basics.md b/guides/source/active_record_basics.md index 150f4c0f14..6551ba0389 100644 --- a/guides/source/active_record_basics.md +++ b/guides/source/active_record_basics.md @@ -173,18 +173,18 @@ name that should be used: ```ruby class Product < ActiveRecord::Base - self.table_name = "PRODUCT" + self.table_name = "my_products" end ``` If you do so, you will have to define manually the class name that is hosting -the fixtures (class_name.yml) using the `set_fixture_class` method in your test +the fixtures (my_products.yml) using the `set_fixture_class` method in your test definition: ```ruby -class FunnyJoke < ActiveSupport::TestCase - set_fixture_class funny_jokes: Joke - fixtures :funny_jokes +class ProductTest < ActiveSupport::TestCase + set_fixture_class my_products: Product + fixtures :my_products ... end ```