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

Version Path
kuztuscms-0.0.10 app/controllers/kuztuscms_controller.rb
kuztuscms-0.0.9 app/controllers/kuztuscms_controller.rb
kuztuscms-0.0.8 app/controllers/kuztuscms_controller.rb
kuztuscms-0.0.7 app/controllers/kuztuscms_controller.rb
kuztuscms-0.0.6 app/controllers/kuztuscms_controller.rb
kuztuscms-0.0.5 app/controllers/kuztuscms_controller.rb
kuztuscms-0.0.4 app/controllers/kuztuscms_controller.rb