Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Merge requests
  • !706

Add support for referencing the resource from fields.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/TheHumanEffort/master into master Dec 12, 2016
  • Overview 6
  • Commits 15
  • Pipelines 0
  • Changes 30

Created by: dts

First off - Administrate solves this problem really nicely! I am so excited someone finally did it right!

Second, my specific use case motivating this PR is having a Refile image field, and Refile prefers access to the resource & attribute name, as opposed to just the data. It seemed like a minor change based on the code, but I'm not sure where else in the code I should edit things (.new isn't exactly that unique...).

Others apparently wanted this as well:

https://github.com/thoughtbot/administrate/issues/438

Lastly, I'm afraid I couldn't figure out how to get tests to even run on my system, and ran out of time to figure it out. Things work fine for me in my rails 5 test project, fwiw. Since there wasn't much feedback on the above issue I figured I'd just shoot in the dark and hope I don't hit anyone. Thanks/sorry!

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/TheHumanEffort/master