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

Version Path
fullstack-cms-0.3.8.fix lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.2.32.fix lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.14 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.13 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.12 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.11 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.10 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.9 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.8 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.7 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.6 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.5 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.4 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.3 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.2 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.3.1 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.2.36 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.2.35 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.2.34 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
fullstack-cms-0.2.33 lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb