You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice library! In reviewing it, I noticed that you require ActiveModel constants that are autoloaded by Rails. This will slow down an application's development boot because it's loading more files than necessary.
Instead, you could structure this project like a Rails Engine and move hyper_active_form/base.rb into app/ in your gem, which will result in it being automatically autoloaded.
If I understand correctly, the only step is to move lib/hyper_active_form/base.rb into app/hyper_active_form/base.rb ? Or is there more to do like explicitely define a Rails Engine ?
Activity
Intrepidd commentedon Oct 28, 2025
Thanks a lot, I'll try it out !
If I understand correctly, the only step is to move
lib/hyper_active_form/base.rbintoapp/hyper_active_form/base.rb? Or is there more to do like explicitely define a Rails Engine ?