-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
Rails credentials read prevents Flipper from working on Rails < 5.2 #857
Comments
Generally I’d say we don’t support versions that are EOL by rails but checking if the app responds to credentials seems easy. Any interest in a PR? |
Sounds good, will submit in the next week-ish |
astupka
added a commit
to customink/flipper_rails_upgrades
that referenced
this issue
Apr 23, 2024
astupka
added a commit
to customink/flipper_rails_upgrades
that referenced
this issue
Apr 25, 2024
Closing as stale. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In #782, there was an update to read values from Rails credentials. Credentials were added in Rails 5.2, which means this throws an error when using Flipper 1.1.0+ and Rails < 5.2:
There isn't an explicit dependency on particular Rails versions in the gemspec, however
flipper-active_record
does have a requirement for Rails >= 4.2. Without getting too nitpicky on the solutions here, some possible options:flipper/lib/flipper/engine.rb
Lines 41 to 42 in 0e99629
There's also a question of whether those env var checks need to happen there, rather than inside the
cloud?
block since they seem to only apply to cloud users (this is not used in a cloud application FWIW).The text was updated successfully, but these errors were encountered: