Skip to content

Extract ActiveRecord::SessionStore from Rails - #7436

Merged
josevalim merged 4 commits into
rails:masterfrom
sikachu:master-remove-active_record-session_store
Aug 24, 2012
Merged

josevalim merged 4 commits into
rails:masterfrom
sikachu:master-remove-active_record-session_store

Conversation

@sikachu

@sikachu sikachu commented Aug 23, 2012

Copy link
Copy Markdown
Member

This functionality will be available from gem active_record-session_store instead. The gem is currently hosted at https://github.com/sikachu/activerecord-session_store, and I'll be pushing to rails/ soon.

@rafaelfranca

Copy link
Copy Markdown
Member

👍 with the changelog entry

@sikachu

sikachu commented Aug 23, 2012

Copy link
Copy Markdown
Member Author

Pull request updated with changelog.

@fxn

fxn commented Aug 23, 2012

Copy link
Copy Markdown
Member

Prem, the "Action Controller Overview" and "Configuring Rails Applications" guides need to be updated as well.

@sikachu

sikachu commented Aug 23, 2012

Copy link
Copy Markdown
Member Author

@fxn sure thing. going to do that when I get home.

@carlosantoniodasilva

Copy link
Copy Markdown
Member

Yay 👍

Comment thread activerecord/CHANGELOG.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Plese -> Please :)

@josevalim

Copy link
Copy Markdown
Contributor

Loving this! <3

@spastorino

Copy link
Copy Markdown
Contributor

👍

@arunagw

arunagw commented Aug 24, 2012

Copy link
Copy Markdown
Member

❤️

@sikachu

sikachu commented Aug 24, 2012

Copy link
Copy Markdown
Member Author

Pull request update with the doc fix from @josevalim and guides are updated from @fxn's request. The gem has also been pushed to rails/activerecord-session_store

Comment thread actionpack/CHANGELOG.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can say "ActiveRecord::SessionStore is extracted out of Rails into a gem activerecord-session_store. Setting config.session_store to :active_record_store will no longer work and will break if the activerecord-session_store gem isn't available". More informative imo.

EDIT: Now I see, you've done this in the AR changelog. Could do it here too.

@homakov

homakov commented Aug 24, 2012

Copy link
Copy Markdown
Contributor

Reasonable!
Offtopic question: would "encrypted" cookie store be useful? I mean it will be impossible to read on client side w/o encrypted_key. Because currently some people store "sensitive" info in session, while it easily can be decoded from base64.

@sikachu

sikachu commented Aug 24, 2012

Copy link
Copy Markdown
Member Author

@homakov might be, maybe open up another ticket requesting for comment on that? Then we can take it from there.

This functionality will be available from gem
`active_record-session_store` instead.
@sikachu

sikachu commented Aug 24, 2012

Copy link
Copy Markdown
Member Author

Pull request updated with updated documentation feedback from @vijaydev

@sikachu

sikachu commented Aug 24, 2012

Copy link
Copy Markdown
Member Author

Meta session migration generator has been removed, @josevalim

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe we should raise an error here. Otherwise people will get constant ActionDispatch::Session::ActiveRecordStore not found error. Tell them it was moved to a plugin and that they should set config.session_store = ActiveRecord::SessionStore.

Tell people to install `activerecord-session_store` gem when it's not
installed instead ofraising `NameError` on missing
`ActionDispatch::Session::ActiveRecordStore`.
@sikachu

sikachu commented Aug 24, 2012

Copy link
Copy Markdown
Member Author

Ok, error message has been added. I guess this is ready to roll.

@guilleiguaran

Copy link
Copy Markdown
Member

:shipit:

josevalim pushed a commit that referenced this pull request Aug 24, 2012
…sion_store

Extract ActiveRecord::SessionStore from Rails
@josevalim
josevalim merged commit 73c0222 into rails:master Aug 24, 2012
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.

10 participants