Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Don't load ActiveRecord during rails initialization - #1194

Merged
pat merged 1 commit into
pat:developfrom
jdelStrother:rails-init
Apr 30, 2021
Merged

pat merged 1 commit into
pat:developfrom
jdelStrother:rails-init

Conversation

@jdelStrother

Copy link
Copy Markdown
Contributor

If ThinkingSphinx requires ActiveRecord on load, then setting configuration in applications' initializers with have no effect (eg
Rails.application.config.active_record.has_many_inversing).

Instead, ActiveRecord should be deferred to the end of initialization using the Railtie. WDYT to something like this?

If ThinkingSphinx requires ActiveRecord on load, then setting
configuration in applications' initializers with have no effect (eg
Rails.application.config.active_record.has_many_inversing).

Instead, ActiveRecord should be deferred to the end of initialization
using Railtie
@pat

pat commented Apr 30, 2021

Copy link
Copy Markdown
Owner

Looks good to me - and thanks for figuring out the fix! Must have been a frustrating thing to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants