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!