Sha256: a31a18f81474fdb5e1fefd7fdc0e025c6732b191db8236cf050ed52fcc5e7e09
Contents?: true
Size: 513 Bytes
Versions: 2
Compression:
Stored size: 513 Bytes
Contents
class WelcomeController < ApplicationController with_themed_layout '2_column' before_filter :authenticate_user!, only: :new respond_to :html def index respond_with end def new if first_time_login? redirect_to new_classify_concern_path else redirect_to dashboard_index_path end end private def show_action_bar? false end def first_time_login? user_login_count > 1 ? false : true end def user_login_count current_user.sign_in_count end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curate-0.3.2 | app/controllers/welcome_controller.rb |
curate-0.3.1 | app/controllers/welcome_controller.rb |