osulp / Scholars-Archive

ScholarsArchive@OSU, institutional repository for Oregon State University
https://ir.library.oregonstate.edu/
15 stars 3 forks source link

Update to clean up overridden controller #2610

Closed straleyb closed 3 weeks ago

straleyb commented 3 weeks ago

This refactors to remove the overridden show method from FileSetsController. Its not needed if we just write a new method and prepend it in a before action.

This also prepends two methods. One being the redirect if restricted behavior and the second being the "unavailable" redirect. The first one to fire will be the redirect if restricted. If that one doesnt go through then the next one will. that should catch all the redirects for the filesets. If both fail then it'll flow naturally through the show action.