Skip to content

Commit

Permalink
Fixing todo, using basic layout in accounts controller
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesprior committed Jan 27, 2013
1 parent 6401c82 commit cdea7dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/account_sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def create
@session = AccountSession.new params[ :account_session ]
if @session.save
session[:autofinger_level] = 1
account = Account.where(:username => @session.username).first #todo - I bet there's a better way to do this line
account = @session.record
account.login = Time.now
account.save!
redirect_to root_path
Expand Down
1 change: 0 additions & 1 deletion app/controllers/accounts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require File.expand_path('../../mailers/notifier.rb', __FILE__)

class AccountsController < ApplicationController
layout false

def new
@allowed_domains = APP_CONFIG['email_domains'].map{|d| [d]}
Expand Down

0 comments on commit cdea7dd

Please sign in to comment.