Open jennykortina opened 6 years ago
I have tried a fix for it in my pull request: https://github.com/GetJobber/recurring_select/pull/115
You can use my forked branch till the time it gets accepted by adding this to your gemfile:
gem 'recurring_select', git: 'https://github.com/sahild/recurring_select.git', branch: 'master'
This issue was caused by this https://github.com/rails/rails/pull/5911 which basically Do not allow editing middleware stack after it has been built
Backward compatibility of a lot of gems is compromised. By fix is loosely based on how sass-rails gem was fixed https://github.com/rails/sass-rails/pull/386/files
The gem now loads, but when I try to call it in a view I get:
NoMethodError - undefined method
select_recurring' for ...`
Trying to call it like so:
<%= f.select_recurring :recurring_rule, [], :allow_blank => true %>
The issue was @sahild wasn't on the most update to version of the gem. I have a fork here:
https://github.com/jennykortina/recurring_select
-> master
That runs on rails 5.2
Hi we're looking into this issue, but haven't been able to reproduce it with a fresh Rails 5.2.0 or 5.2.1 app using recurring_select
.
Would you be able to provide an example project that is experiencing this issue?
@ZakaryH it's a private repo so no I can't provide an example. But I'm surprised you can get rails to start with the gem as is. As @sahild said b/c the gem is editing the middleware it shuts the server down
Just upgraded to rails 5 and am getting
Unable to load application: FrozenError: can't modify frozen Array
When I try to start the server. If I remove the
recurring_select
gem the server starts.Here's all the places I am referencing
recurring_select