Sha256: 0e9818784c65388c4cc4b9b1d4f0bd44dba4046da1dd4ec2adcbc99385d9c622

Contents?: true

Size: 289 Bytes

Versions: 5

Compression:

Stored size: 289 Bytes

Contents


  # redirect to admin dashboard after signing in
  def after_sign_in_path_for(user)
    if current_user.is_admin?
      admin_dashboard_path
    else
      root_path
    end
  end

  # redirect back to sign in form when signed out
  def after_sign_out_path_for(user)
    root_path
  end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cambium-0.2.2 lib/generators/cambium/templates/app/controllers/application_controller.rb
cambium-0.2.1 lib/generators/cambium/templates/app/controllers/application_controller.rb
cambium-0.2.0 lib/generators/cambium/templates/app/controllers/application_controller.rb
cambium-0.0.2 lib/generators/cambium/templates/app/controllers/application_controller.rb
cambium-0.0.1 lib/generators/cambium/templates/app/controllers/application_controller.rb