Skip to content

Commit

Permalink
Fixed the invalid usage of primary_abstract_class
Browse files Browse the repository at this point in the history
This is a method of [ActiveRecord::Inheritance::ClassMethods](https://api.rubyonrails.org/classes/ActiveRecord/Inheritance/ClassMethods.html#method-i-primary_abstract_class), but the guide treats it as an attribute.
  • Loading branch information
pawelkomarnicki committed Feb 2, 2023
1 parent 2ca5d74 commit 9171f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_record_multiple_databases.md
Expand Up @@ -131,7 +131,7 @@ should share a connection with.

```ruby
class PrimaryApplicationRecord < ActiveRecord::Base
self.primary_abstract_class = true
primary_abstract_class
end
```

Expand Down

0 comments on commit 9171f5d

Please sign in to comment.