app/controllers/sessions_controller.rb in dailycred-0.1.36 vs app/controllers/sessions_controller.rb in dailycred-0.1.41
- old
+ new
@@ -1,7 +1,8 @@
class SessionsController < ApplicationController
before_filter :authenticate, :only => [:destroy]
before_filter :current_user
+ include Dailycred::Helpers
# Callback Route for OAuth flow
def create
@user = User.find_or_create_with_omniauth auth_hash
session[:user_id] = @user.id