Sitelet https://github.com/Netflix/fast_jsonapi/issues/447
Skip to content

How can I reference dynamic attributes inside of other dynamic attributes? #447

Description

@benlieb

The following fails with undefined method 'person_path'

  attribute :person_path do |obj|
    url_helpers.person_path obj 
  end

  attribute :edit_person_path do |obj|
    "#{obj.person_path}/edit/person"
  end

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions