Sha256: 896324bd1e516c91659ea822d26e7d6d271769bbd4b608c63aabaa643888a4c5

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

class Admin::AdminController < ApplicationController

  before_filter :user_valid?

  layout 'admin'

  def user_valid?
    if logged_in?
      redirect_to root_path, :notice => t('.invalid_account') unless Cartoset::Config.valid_user?(current_user)
    else
      session[:return_to] = request.request_uri
      redirect_to login_required_path
    end
  end
  protected :user_valid?

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cartoset-0.0.2 app/controllers/admin/admin_controller.rb