Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Doc not mentioning how to override core classes for backend #126

Open
nebulon42 opened this issue Jan 2, 2022 · 1 comment
Open

Doc not mentioning how to override core classes for backend #126

nebulon42 opened this issue Jan 2, 2022 · 1 comment

Comments

@nebulon42
Copy link

In plugins.md it says that you should add a after_initialize block to override core classes. However, this only works for Rails apps. Since the backend is a Sinatra app the doc misses a part on how to extend backend core classes. This would be helpful for people like me who are not too familiar with Ruby/Rack/Sinatra/Rails.

@nebulon42
Copy link
Author

After some tinkering I found out that I could use ArchivesSpaceService.loaded_hook do for it. But it also worked without that. I needed to better understand how this monkey-patching works in Ruby.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant