Sha256: a9f53572791ccee40553af4e9195f325a2a6bf628c8706b183608c9e9264424b
Contents?: true
Size: 462 Bytes
Versions: 7
Compression:
Stored size: 462 Bytes
Contents
class KuztuscmsController < ActionController::Base before_filter :authenticate_for_cms! layout 'kuztuscms/application' private def authenticate_for_cms! if Kuztuscms::User.count > 0 authenticate_user! else redirect_to :controller => :users, :action => :new end end def after_sign_out_path_for(resource_or_scope) kuztuscms.root_path end def signed_in_root_path(resource_or_scope) kuztuscms.root_path end end
Version data entries
7 entries across 7 versions & 1 rubygems