Sha256: 75147b000ec6c3c71de0b392146f06bca936e00e29feb57b04b8175e1ad54d64
Contents?: true
Size: 770 Bytes
Versions: 32
Compression:
Stored size: 770 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 recent_activity @recent_actions = Action.recent(current_user.current_organization).where('import_id is null').page(params[:page]).per_page(10) render 'index/_recent_activity', :layout => false 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).where('import_id is null').page(params[:page]).per_page(10) end end end
Version data entries
32 entries across 32 versions & 1 rubygems