Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Question: How to load through parent of nested #1045

@mberrueta

Description

@mberrueta

Hello all, I have a question that I can't find an example in the doc, loading nested of nested resource

I have

class A
  has_many B
  :project_id

class B
  has_one C

class C

then I have a controller

class CController
  load_and_authorize_resource :a
  load_and_authorize_resource :b, through: :a, shallow: true
  load_and_authorize_resource :c

I want something like c, through: :a, shallow: true

it's possible?

thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions