Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add the after_initialize configuration hook #118

Open
rsamoilov opened this issue Jan 9, 2025 · 0 comments
Open

Add the after_initialize configuration hook #118

rsamoilov opened this issue Jan 9, 2025 · 0 comments
Labels
good first issue Good for newcomers

Comments

@rsamoilov
Copy link
Member

Description

Currently, Rage lacks support for the after_initialize hook that allows to defer running a block of code to after the application has been initialised. Adding this hook would allow users to configure the application and reference application-level constants.

Example:

Rage.config.after_initialize do
  Rollbar.configure do |config|
    config.ignored_person_ids = User.test_users.ids
  end
end

Tips

  • See the description of the hook in Rails Guides.
  • Check the overview doc that shows how Rage's core components interact with each other.
  • Feel free to ask any questions or request help in the comments below!
@rsamoilov rsamoilov added the good first issue Good for newcomers label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant