Pat Allan
f39c6fd927
Add the frozen_string_literal pragma comment to all Ruby files. ( #4725 )
2017-12-21 15:36:29 -02:00
Lucas Mazza
6720f93d2c
Remove deprecated omniauth path from `store_location` docs [ci skip]
2016-07-26 10:10:49 -03:00
Jimmy Bourassa
5dedd8c4cf
Add fragment support for `store_location_for`
2014-11-05 16:52:40 -05:00
Lucas Mazza
1ad09f9cfc
Improve CHANGELOG and move assignment to outside the `if` statement.
2014-04-28 11:28:48 -03:00
Maxim Pechnikov
a841e6c4f0
fixed storing location with bad URL
2014-04-25 19:14:32 +04:00
Christopher Sexton
7afc096fa4
Keep the query string and path in store_location_for
...
Persist the URI's query when saving to the session.
Fixes #2742
2013-11-20 15:47:20 -05:00
José Valim
f36efc0cc9
Ensure multiple leading / are also removed, thanks @homakov
2013-11-13 15:01:23 +01:00
José Valim
3b598ec235
Release v3.2.1
2013-11-13 14:15:13 +01:00
José Valim
0582467032
Ensure we only store paths in store_location_for (thanks to @homakov for the tip)
2013-11-13 13:30:24 +01:00
Matthew Rudy Jacobs
268e486dbb
Add store_location_for helper
...
This is used as a complement to `stored_location_for`.
Example:
Before authorizing with Omniauth;
store_location_for(:user, dashboard_path)
redirect_to user_omniauth_authorize_path(:facebook)
In our Omniauth callback
sign_in(user)
redirect_to stored_location_for(:user) || root_path
2013-11-09 00:59:00 +00:00