Rails 4 upgrade seems to break autoloading
mhchen opened this issue · 5 comments
I upgraded my application and this gem to Rails 4 recently and since then in development, I have noticed an interesting issue with recurring_select not autoloading files properly. The first time my rails application starts up the widget works perfectly, but after I save any file in my application (likely forcing some modules to reload) the widget stops appearing. I tracked this down to the fact that in app/helpers/recurring_select_helper.rb, RecurringSelectHelper::RecurringSelectTag is no longer defined (it is when the app first loads). I feel like this has something to do with the unconventional auto-loading structure of the gem (the desired class is defined in utilities/tag_ext), but I also feel like if no one else has reported this problem then it might be specific to my application. This is the only gem where I have encountered this issue though and my explanation seems to be consistent with what I know about Rails autoloading. If anyone else has run into this problem, perhaps redoing the directory structure would solve the issue, and I'd be happy to take care of this. If this is something only I've faced then I would love to have some tips on how to fix it.
Yes also having this issue, again on rails 4 after a file save. Restarting server seems to bring it back.
Have you tried the 1.2.1.rc3
?
Yes, that seem to do the trick.
Thanks
1.2.1 is released now.