Sha256: 761c518478f2b65438ddaa3b3ea1172f39f042419a83187fdd48220ae65e083c

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

class IndexController < ArtfullyOseController

  skip_before_filter :authenticate_user!, :only => [:index]

  def index
    redirect_to admin_root_path if admin_signed_in?
  end

  def login_success
    redirect_to root_path
  end

  def dashboard
    if current_user.is_in_organization?
      @events = current_user.current_organization.events.includes(:shows, :venue).order('updated_at DESC').limit(4)
      @recent_actions = Action.recent(current_user.current_organization, 10)
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
artfully_ose-1.0.0.rc4 app/controllers/index_controller.rb
artfully_ose-1.0.0.rc3 app/controllers/index_controller.rb