Sha256: f4201b69fd6659a052f535cb206817eb369220eb0714529496680a19f6b2764c
Contents?: true
Size: 1.01 KB
Versions: 31
Compression:
Stored size: 1.01 KB
Contents
DeviseController.class_eval do before_filter :set_page_title protected def set_page_title @page_title = case "devise/#{controller_name}##{action_name}" when "devise/sessions#new" t('devise.sessions.new.sign_in', :default => "Sign in") when "devise/confirmations#new" t('devise.confirmations.new.resend_confirmation_instructions', :default => 'Resend confirmation instructions') when "devise/registrations#new" t('devise.registrations.new.sign_up', :default => "Sign up") when "devise/registrations#edit" t('devise.registrations.edit.title', :resource => resource_name.to_s.humanize , :default => 'Edit #{resource_name.to_s.humanize}') when "devise/passwords#new" t('devise.passwords.new.forgot_your_password', :default => 'Forgot your password?') when "devise/passwords#edit" t('devise.passwords.edit.change_your_password', :default => "Change your password") end end end
Version data entries
31 entries across 31 versions & 1 rubygems