Thomas Walpole
5d9f6d892f
Explicitly permit rather than using to_unsafe_h
2015-12-16 14:14:15 -08:00
Thomas Walpole
2024fca4df
Rails 5 compatability. Remove rails < 4.1 and Ruby < 2.1
2015-12-11 09:47:30 -08:00
Dave Copeland
e1b9dc860f
remove use of hide_action in favor of protected
...
Rails 5 will [not have `hide_action` any longer](https://github.com/rails/rails/pull/18371/files ), as the Rails convention is to not expose private or protected methods as actions, thus obviating the need for `hide_action`.
Presumably, there is code inheriting from `DeviseController` that is
calling these helpers, so they cannot be private, so protected seems to
be the only way to get Devise working with Rails 5.
2015-03-01 15:05:20 -05:00
Hannah Briggs
f80ebea0e6
allow set_flash_message to set flash.now messages
2014-10-18 21:28:20 -07:00
Giovanni Caniato
dfcb342a8f
group methods defined in the current scope
2014-05-28 19:30:03 +02:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
Vasiliy Ermolovich
6d51e67fac
properly change devise config in specs
2014-01-04 19:19:13 +03:00
José Valim
dff7891b97
Get rid of token authentication
2013-09-02 19:15:47 -03:00
Carlos Antonio da Silva
69f79ad446
Let Devise play with both Rails 3.2 and Rails 4 for now
2013-05-05 19:55:06 -03:00
Drew Ulmer
e0ffe8f85f
Fix internal helper test referencing resource_params
2013-03-31 21:31:54 -05:00
Drew Ulmer
d6449d014e
Add test for #devise_i18n_options allowing resource_name override
2012-10-24 12:13:07 -05:00
Adam Meehan
7ec4c1424d
Add resource_params internal helper to param filtering
...
In light of recent discussions around mass assignment security and
the alternate solution of using the controller to filter params, not the model,
a hook/helper is needed to be able to override how the params are filtered
before they are used to build the resource.
2012-05-15 18:07:02 +10:00
José Valim
fb8e093389
Accept devise_i18n_options to handle custom i18n values, closes #1633
2012-02-15 16:58:23 +01:00
José Valim
d9df632671
Get rid of InternalHelpers, refactor scoped views for more performant behavior.
2012-01-02 22:01:28 +01:00
José Valim
bd27bf7677
Deprecate and disable old behavior accumulated with time.
2011-12-04 23:58:19 +01:00
José Valim
fac02b58bc
Another attempt to fix the misterious loading helpers bug.
2011-10-18 08:35:50 +02:00
José Valim
990dcc8eef
Try to fix the misterious case where some url helpers are not defined.
2011-10-09 11:50:48 +02:00
José Valim
77d6d1e8c2
Do not try to authenticate with no_input_strategies are empty.
2011-06-22 15:28:49 -03:00
José Valim
4fd866d113
User cannot access sign up and similar pages if he is already signed in through a cookie or token, closes #1036 .
2011-04-29 08:56:57 +02:00
Jack Dempsey
567d59e48a
update verbiage to be more concise
2011-04-16 19:16:33 +08:00
Jack Dempsey
f89f71262d
require_no_authentication now sets flash with I18n message
2011-04-16 19:16:33 +08:00
Prem Sichanugrist
b6652abc7c
Add navigational_formats
internal helper which filters out wildcard
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-03-30 13:43:57 +02:00
Carlos Antonio da Silva
ed30114bd8
Fix changelog e cleanup white spaces
2010-11-21 11:25:37 -02:00
Steve Ross
4a8f9a9ba8
set_flash_message: Added conditional to make certain flash entries are not set if message is blank.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-20 21:42:25 +01:00
José Valim
731650a0f1
after_sign_in_path_for always receives a resource
2010-08-23 08:56:10 -03:00
José Valim
00c6f583e2
More OAuth tests.
2010-07-26 20:33:22 +02:00
José Valim
ae6322efb5
No longer retrieve the user from paths, but use the env hash. This change deprecates use_default_scope.
...
If you have non conventional routes and want to specify the scope for a controller, you can do that at the router level:
as :user do
get "/sign_in", :to => "devise/session#new"
end
This is saying: when accessing "/sign_in", devise should use the user scope. Meaning that users signed through that form will be signed to the user scope.
2010-07-06 01:33:32 +02:00
José Valim
ca4e09390e
Compatibility with Ruby 1.9.1 and 1.9.2.
2010-03-26 11:27:19 +01:00
José Valim
b581f86317
DRY up controllers.
2010-01-13 18:12:13 +01:00