You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just as Devise makes current_useraccessible to both the controllers and views via helper_method, it would make sense to make current_resource_owner accessible to views as well.
Currently, when custom views need to access the resource owner, it must be done via the hacky and undocumented @current_resource_ownermemoized variable.
The text was updated successfully, but these errors were encountered:
Just as Devise makes
current_user
accessible to both the controllers and views viahelper_method
, it would make sense to makecurrent_resource_owner
accessible to views as well.Currently, when custom views need to access the resource owner, it must be done via the hacky and undocumented
@current_resource_owner
memoized variable.The text was updated successfully, but these errors were encountered: