CF assignment for security measures in rails