Skip to content
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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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