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

Fix loading settings in production #574

Closed
wants to merge 1 commit into from

Conversation

iNecas
Copy link
Member

@iNecas iNecas commented May 3, 2013

The Setting subclasses are not preloaded in initialization phase in
production.

Also (if Setting.first rescue (false)) is not satisfied when the settings are
not set yet. Using table_exists? instead.

@GregSutcliffe
Copy link
Member

This looks quite sensible, although I'm surprised the settings aren't properly loaded in Production...

@GregSutcliffe
Copy link
Member

@iNecas needs a rebase ;)

The Setting subclasses are not preloaded in initialization phase in
production.

Also (if Setting.first rescue (false)) is not satisfied when the
settings are not set yet. Using table_exists? instead.

Also, define constants before audited So that the constants are available even
when not migrated yet.
@iNecas
Copy link
Member Author

iNecas commented May 6, 2013

@GregSutcliffe rebased

@GregSutcliffe
Copy link
Member

@ohadlevy review?

@GregSutcliffe
Copy link
Member

This fixes an error with the debian nightlies where the settings table is not properly initialised. I'd like to see this merged quickly.

@ohadlevy
Copy link
Member

ohadlevy commented May 7, 2013

merged - thanks!

@ohadlevy ohadlevy closed this May 7, 2013
h0jeZvgoxFepBQ2C pushed a commit to h0jeZvgoxFepBQ2C/foreman that referenced this pull request Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants