fix devise_controller? helper & after_initialize replaced with to_prepare block