Skip to content
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

Session strategy #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Session strategy #32

wants to merge 2 commits into from

Conversation

jasonblalock
Copy link
Contributor

I wanted to be able to store the feature toggles inside the encrypted rails session instead of individually as cookies. In case this was a feature others were interested in, I created a PR to add it in.

The only piece I'm not sure on is adding the controller filters based on feature strategy in the declarable class. Ideas are welcome.

@@ -49,7 +49,7 @@ class Feature < ActiveRecord::Base
include Flip::Declarable

# The recommended Flip strategy stack.
strategy Flip::CookieStrategy
strategy Flip::CookieStrategy # alternatively can use strategy Flip::CookieStrategy for session-based
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a copy-paste error in this string.

Perhaps this is better:

# Alternative: Use Flip::SessionStrategy to use Rails' encrypted sessions instead of cookies

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