app/controllers/application_controller.rb
# Debugging method to check for a MapStory Cookie
# Call with a before_filter.
Debugging method to check for a MapStory Cookie
Call with a before_filter.
Debugging method to check for a MapStory Cookie Call with a before_filter .
def check_cookie
		Rails.logger.info "Checking for MapStory cookie"
		if cookies[:msid]
			Rails.logger.info "-- We have a msid cookie"
			decoded_value = MapstoryCookie.decode(cookies[:msid])
			Rails.logger.info "-- Our decoded value is: " + decoded_value.inspect
			return decoded_value
		else
			Rails.logger.info "-- No cookie detected"
			return false
		end
	end
def check_cookie Rails . logger . info "Checking for MapStory cookie" if cookies [ :msid ] Rails . logger . info "-- We have a msid cookie" decoded_value = MapstoryCookie . decode ( cookies [ :msid ] ) Rails . logger . info "-- Our decoded value is: " + decoded_value . inspect return decoded_value else Rails . logger . info "-- No cookie detected" return false end end
Debugging method to check for a MapStory Cookie
Call with a before_filter.
Debugging method to check for a MapStory Cookie Call with a before_filter .