Merge branch 'pr-144'

This commit is contained in:
cktricky
2014-07-29 08:23:52 -05:00
4 changed files with 18 additions and 17 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
class ApplicationController < ActionController::Base
before_filter :authenticated, :has_info, :create_analytic
before_filter :authenticated, :has_info, :create_analytic, :mailer_options
helper_method :current_user, :is_admin?, :sanitize_font
# Our security guy keep talking about sea-surfing, cool story bro.
@@ -7,6 +7,11 @@ class ApplicationController < ActionController::Base
private
def mailer_options
ActionMailer::Base.default_url_options[:protocol] = request.protocol
ActionMailer::Base.default_url_options[:host] = request.host_with_port
end
def current_user
@current_user ||= (
User.find_by_auth_token(cookies[:auth_token].to_s) ||