Skip to content

Commit 9ab7a01

Browse files
committed
Indicate class_name flows through from model.
1 parent 64577ab commit 9ab7a01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ end
262262

263263
The relationship methods (`relationship`, `has_one`, and `has_many`) support the following options:
264264

265-
* `class_name` - a string specifying the underlying class for the related resource
265+
* `class_name` - a string specifying the underlying class for the related resource. Defaults to the `class_name` property on the underlying model.
266266
* `foreign_key` - the method on the resource used to fetch the related resource. Defaults to `<resource_name>_id` for has_one and `<resource_name>_ids` for has_many relationships.
267267
* `acts_as_set` - allows the entire set of related records to be replaced in one operation. Defaults to false if not set.
268268
* `polymorphic` - set to true to identify relationships that are polymorphic.

0 commit comments

Comments
 (0)