Sha256: c69d99568f743c1812f70fb08f52a8317321ce3cb6b68e5f282fcbfdaff66803
Contents?: true
Size: 228 Bytes
Versions: 3
Compression:
Stored size: 228 Bytes
Contents
class FlyAdmin::ApplicationController < ActionController::Base before_filter :authenticate_admin! def authenticate_admin! unless current_user && current_user.admin? redirect_to main_app.root_url end end end
Version data entries
3 entries across 3 versions & 1 rubygems