Skip to content

Commit

Permalink
add scope variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Sep 27, 2024
1 parent 24ec696 commit 6953001
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/3.0/common/scopes_common.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ The `comments` query on the user `Index` page will have the `approved` scope att

With version 2.5.0, you'll also have access to the `parent` record so that you can use that to scope your associated models even better.

Starting with version 3.12, access to `resource` and `parent_resource` was additionally provided.

All the `has_many` associations have the [`attach_scope`](./../associations/belongs_to#attach-scope) option available too.

0 comments on commit 6953001

Please sign in to comment.