You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,7 +262,7 @@ end
262
262
263
263
The relationship methods (`relationship`, `has_one`, and `has_many`) support the following options:
264
264
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.
266
266
*`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.
267
267
*`acts_as_set` - allows the entire set of related records to be replaced in one operation. Defaults to false if not set.
268
268
*`polymorphic` - set to true to identify relationships that are polymorphic.
0 commit comments