Changed to Rails 4.0.4, changed config to Entership::Application instead of Rails.application and added current_user and is_authenticated?