Sha256: 40f44f7cccd40fc2ab4c1622e82cadf955b79d7b4266ac0f5b6970e7a54db6f9
Contents?: true
Size: 1.03 KB
Versions: 66
Compression:
Stored size: 1.03 KB
Contents
DeviseController.class_eval do authorize :scope => "site" 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
66 entries across 66 versions & 1 rubygems