mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-30 04:52:52 +02:00
13 lines
304 B
Ruby
13 lines
304 B
Ruby
|
module UsersHelper
|
||
|
# Inject a devise template inside a same container
|
||
|
# while translation form keys are still valid
|
||
|
# (original partial scope is preserved)
|
||
|
def devise_form_container
|
||
|
content_for(:devise_form_content) do
|
||
|
yield
|
||
|
end
|
||
|
|
||
|
render "shared/devise_form_container"
|
||
|
end
|
||
|
end
|