Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make example code consistent for better understanding. [ci skip] #19383

Merged
merged 1 commit into from
Mar 18, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions guides/source/active_record_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down